/* professional.css - Estilos Profissionais */

/* Top Navigation */
.top-nav {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    padding: 0 30px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-brand i {
    font-size: 2rem;
    color: #64b5f6;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 5px;
}

.nav-item {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-item.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.user-info {
    text-align: right;
}

.user-name {
    display: block;
    font-weight: 600;
}

.user-role {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
}

.user-avatar i {
    font-size: 2.5rem;
    color: #64b5f6;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.quick-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 150px;
    text-align: center;
}

.quick-btn:hover {
    border-color: #2196F3;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.quick-btn i {
    font-size: 2rem;
    color: #2196F3;
}

.quick-btn span {
    font-weight: 600;
    color: #333;
}

/* Import Wizard */
.import-wizard {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 50px;
}

.wizard-step {
    padding: 30px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #2196F3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-title h2 {
    color: #1a237e;
    margin: 0 0 5px 0;
    font-size: 1.5rem;
}

.step-title p {
    color: #666;
    margin: 0;
}

.step-stats {
    margin-left: auto;
    display: flex;
    gap: 15px;
}

.step-stat {
    text-align: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    min-width: 100px;
}

.step-stat .number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2196F3;
    display: block;
}

.step-stat .label {
    font-size: 0.8rem;
    color: #666;
    display: block;
}

/* Form Sections */
.form-section {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.select-wrapper {
    position: relative;
}

.form-select {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s;
}

.form-select:focus {
    border-color: #2196F3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.select-wrapper i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.saved-lists {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 50px;
    height: 50px;
    background: #f5f7fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: #2196F3;
    border-color: #2196F3;
    color: white;
}

/* URL Input */
.url-input-group {
    display: flex;
    gap: 10px;
}

.url-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.url-input:focus {
    border-color: #2196F3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.btn-analyze {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-analyze:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.btn-analyze:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.url-status {
    margin-top: 8px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.url-status.valid {
    background: #e8f5e9;
    color: #2E7D32;
    display: block;
}

.url-status.invalid {
    background: #ffebee;
    color: #c62828;
    display: block;
}

/* Mode Selector */
.mode-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.mode-option {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.mode-option:hover {
    border-color: #2196F3;
    background: rgba(33, 150, 243, 0.05);
}

.mode-option.active {
    border-color: #2196F3;
    background: rgba(33, 150, 243, 0.1);
}

.mode-option input {
    display: none;
}

.mode-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mode-content i {
    font-size: 2rem;
    color: #2196F3;
}

.mode-content strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
}

.mode-content small {
    color: #666;
    font-size: 0.85rem;
}

/* Server Selector */
.server-selector {
    display: flex;
    gap: 10px;
}

.server-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    border: 2px solid #e0e0e0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.info-label {
    color: #666;
    font-weight: 500;
}

.info-value {
    color: #333;
    font-weight: 600;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.connected {
    background: #4CAF50;
    color: white;
}

.status-badge.disconnected {
    background: #F44336;
    color: white;
}

.status-badge.unknown {
    background: #FF9800;
    color: white;
}

.btn-test {
    background: #FF9800;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-test:hover {
    background: #F57C00;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.btn {
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
}

.btn-secondary {
    background: #f5f7fa;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-success {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

/* Analysis Summary */
.analysis-summary {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.summary-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.summary-icon i {
    font-size: 4rem;
    opacity: 0.9;
}

.summary-stats {
    flex: 1;
}

.summary-stats h3 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.summary-item {
    text-align: center;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.summary-item .number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.summary-item .label {
    font-size: 0.9rem;
    opacity: 0.9;
    display: block;
}

/* Categories Grid */
.categories-section {
    margin-bottom: 30px;
}

.categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.categories-header h3 {
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-actions {
    display: flex;
    gap: 10px;
}

.btn-action {
    background: #f5f7fa;
    border: 2px solid #e0e0e0;
    color: #333;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-action:hover {
    background: #2196F3;
    border-color: #2196F3;
    color: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.category-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.category-item:hover {
    border-color: #2196F3;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-item.selected {
    border-color: #2196F3;
    background: rgba(33, 150, 243, 0.1);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.category-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.category-count {
    background: #2196F3;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.category-percentage {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.category-progress {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.category-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2196F3, #64b5f6);
    border-radius: 3px;
    transition: width 0.3s;
}

.empty-categories {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.empty-categories i {
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Bouquets Selector */
.bouquets-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.bouquets-section h3 {
    color: #333;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bouquets-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.bouquet-option {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.bouquet-option:hover {
    border-color: #2196F3;
    background: rgba(33, 150, 243, 0.05);
}

.bouquet-option input {
    display: none;
}

.bouquet-option input:checked + .bouquet-content {
    color: #2196F3;
}

.bouquet-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bouquet-content i {
    font-size: 2rem;
}

.bouquet-content strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
}

.bouquet-content small {
    color: #666;
    font-size: 0.85rem;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.setting-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
}

.setting-card:hover {
    border-color: #2196F3;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.setting-card h3 {
    color: #333;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.setting-option {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.setting-option input {
    margin-right: 10px;
}

.setting-option span {
    font-weight: 500;
    color: #333;
}

.setting-option small {
    color: #666;
    font-size: 0.85rem;
    margin-left: 25px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-group label {
    color: #333;
    font-weight: 500;
}

.setting-group select,
.setting-group input {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.setting-group select:focus,
.setting-group input:focus {
    border-color: #2196F3;
    outline: none;
}

/* Preview Section */
.preview-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
}

.preview-section h3 {
    color: #333;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.preview-stat {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    min-width: 150px;
    text-align: center;
}

.preview-stat .number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2196F3;
    display: block;
    margin-bottom: 5px;
}

.preview-stat .label {
    color: #666;
    font-size: 0.9rem;
    display: block;
}

.preview-items {
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 15px;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.preview-item:last-child {
    border-bottom: none;
}

.preview-item i {
    color: #2196F3;
    font-size: 1.2rem;
}

.preview-item .name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.preview-item .category {
    color: #666;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 25px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 25px;
}

/* Responsivo */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) {
    .top-nav {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .nav-menu {
        margin: 15px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .quick-actions {
        justify-content: center;
    }
    
    .mode-selector,
    .bouquets-selector {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .step-header {
        flex-direction: column;
        text-align: center;
    }
    
    .step-stats {
        margin: 15px 0 0 0;
    }
    
    .summary-content {
        flex-direction: column;
        text-align: center;
    }
    
    .categories-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}