/* Custom CRM Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
}

body {
    background-color: var(--light-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
}

.sidebar {
    background-color: var(--primary-color);
    min-height: 100vh;
    padding-top: 20px;
}

.sidebar .nav-link {
    color: #ecf0f1;
    padding: 12px 20px;
    border-radius: 5px;
    margin: 2px 10px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: var(--secondary-color);
    color: white;
}

.main-content {
    padding: 20px;
}

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.status-badge {
    font-size: 0.8em;
    padding: 4px 8px;
    border-radius: 12px;
}

.status-unique {
    background-color: #d4edda;
    color: #155724;
}

.status-duplicate {
    background-color: #f8d7da;
    color: #721c24;
}

.status-incomplete {
    background-color: #fff3cd;
    color: #856404;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--primary-color);
}

.search-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.summary-card {
    text-align: center;
    padding: 20px;
}

.summary-card .number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
}

.summary-card .label {
    color: #6c757d;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lead-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
}

.notes-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.note-item {
    background: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    border-left: 4px solid var(--secondary-color);
}

.note-meta {
    font-size: 0.8em;
    color: #6c757d;
    margin-bottom: 5px;
}

.alert {
    border: none;
    border-radius: 8px;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
}

.meetings-table td {
    vertical-align: top;
}

.meetings-table td .small {
    line-height: 1.4;
}

.meeting-status-select {
    min-width: 160px;
}

.status-spinner,
.status-feedback {
    transition: opacity 0.2s ease;
}

.meeting-portal-body {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(44,62,80,0.95), rgba(52,152,219,0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
}

.meeting-portal-wrapper {
    width: 100%;
    max-width: 960px;
}

.meeting-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.meeting-steps {
    position: relative;
}

.meeting-step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: none;
}

.meeting-step.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.meeting-step-branding h1 {
    font-weight: 600;
    color: var(--primary-color);
}

.meeting-step-branding .lead {
    font-size: 1.1rem;
}

.brand-logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 152, 219, 0.08);
    border-radius: 50%;
    width: 160px;
    height: 160px;
}

.brand-logo {
    max-width: 110px;
}

.meeting-form .form-control,
.meeting-form .form-select {
    border-radius: 10px;
    padding: 12px 16px;
}

.meeting-form textarea {
    resize: vertical;
}

.meeting-next-btn {
    border-radius: 999px;
}

.meeting-step.done {
    display: none !important;
}

.badge.bg-primary-subtle {
    background-color: rgba(52, 152, 219, 0.15);
    color: #1b4f72;
}

@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    
    .main-content {
        padding: 10px;
    }
    
    .table-responsive {
        font-size: 0.9em;
    }

    .meeting-card {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .brand-logo-wrapper {
        width: 120px;
        height: 120px;
    }

    .brand-logo {
        max-width: 80px;
    }
}
}
