
:root {
    --primary-color: #5B5FDE;
    --secondary-color: #6C63FF;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --info-color: #3B82F6;
    --light-bg: #F8F9FA;
    --white-bg: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Landing Page Styles */
.landing-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 70px;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 20px;
}

/* Auth Pages Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e3e6f3 100%);
    padding: 40px 10px;
    margin-top: 80px;
    padding-top: 20px;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(91, 95, 222, 0.10), 0 1.5px 6px rgba(0,0,0,0.04);
    padding: 48px 36px 32px 36px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    transition: box-shadow 0.3s;
}
.auth-card:hover {
    box-shadow: 0 12px 40px rgba(91, 95, 222, 0.13), 0 2px 8px rgba(0,0,0,0.06);
}
.auth-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.auth-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.auth-card p.text-secondary {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
.auth-card .form-label {
    font-weight: 500;
}
.auth-card .form-control {
    background: #f8f9fa;
    border-radius: 8px;
}
.auth-card .btn-primary {
    font-size: 1.1rem;
    padding: 12px 0;
    border-radius: 8px;
}
.auth-card a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}
.auth-card a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}
@media (max-width: 600px) {
    .auth-card {
        padding: 32px 10px 24px 10px;
        max-width: 98vw;
    }
}

/* Dashboard Styles */
.sidebar {
    background: white;
    height: 100vh;
    box-shadow: 2px 0 4px rgba(0,0,0,0.05);
    position: fixed;
    width: 300px;
    top: 0;
    left: 0;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
}

.main-content {
    margin-left: 300px;
    padding: 20px;
    background-color: var(--light-bg);
    min-height: 100vh;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    border-radius: 0;
    margin: 0;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 1px solid #eee;
}

.sidebar-link:hover {
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
}

.sidebar-link.active {
    background-color: #e3f2fd;
    color: #1976d2;
    border-left: 3px solid #1976d2;
}

.voicemail-detection-link {
    /* Normal styling - same as other menu items */
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

/* Call Interface */
.call-panel {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.call-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    margin: 0 10px;
    cursor: pointer;
}

.call-btn:hover {
    transform: scale(1.1);
}

/* Tables */
.custom-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.custom-table th {
    background-color: var(--light-bg);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    border: none;
    padding: 16px;
}

.custom-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

/* Forms */
.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 95, 222, 0.1);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-toggle {
        display: block !important;
    }
}

/* Page specific styles */
.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

/* Status badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background-color: #D1FAE5;
    color: #065F46;
}

.status-pending {
    background-color: #FEF3C7;
    color: #92400E;
}

.status-inactive {
    background-color: #FEE2E2;
    color: #991B1B;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

.dialer-mode-card {
    cursor: pointer;
    transition: all 0.3s;
}

.dialer-mode-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.dialer-mode-card.active {
    border-color: var(--primary-color) !important;
    background-color: rgba(91, 95, 222, 0.05);
}

.dialer-mode-card.active i {
    color: var(--primary-color) !important;
}

/* Scrollbar styling */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
    border: 1px solid #f8f9fa;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Firefox scrollbar styling */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f8f9fa;
}

/* Settings Tabs */
.settings-tab {
    display: none;
}

.settings-tab.active {
    display: block;
}

/* Voice Option Cards */
.voice-option-card {
    cursor: pointer;
    transition: all 0.3s;
}

.voice-option-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.voice-option-card.active {
    border-color: var(--primary-color) !important;
    background-color: rgba(91, 95, 222, 0.05);
}

/* CRM Cards */
.crm-card {
    cursor: pointer;
    transition: all 0.3s;
}

.crm-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.crm-card.active {
    border-color: var(--primary-color) !important;
    background-color: rgba(91, 95, 222, 0.05);
}
