:root {
    --primary: #3498db;
    --secondary: #2c3e50;
    --success: #2ecc71;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #343a40;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* Login Page Styles */
.login-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    margin: 20px;
}

.system-title {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 30px;
    font-weight: 300;
}

.system-title h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.system-title p {
    color: #666;
    font-size: 1rem;
}

/* Dashboard Styles */
.sidebar {
    background: linear-gradient(180deg, var(--secondary) 0%, #1a2530 100%);
    min-height: 100vh;
    color: white;
    position: fixed;
    width: 250px;
    transition: all 0.3s;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #34495e;
    text-align: center;
}

.sidebar-header h3 {
    margin: 0;
    font-weight: 300;
    font-size: 1.5rem;
}

.sidebar .nav-link {
    color: #bdc3c7;
    padding: 15px 20px;
    border-bottom: 1px solid #34495e;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sidebar .nav-link:hover {
    background-color: #34495e;
    color: white;
    padding-left: 25px;
}

.sidebar .nav-link.active {
    background-color: var(--primary);
    color: white;
    border-left: 4px solid var(--success);
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.main-content {
    margin-left: 250px;
    padding: 20px;
    transition: all 0.3s;
}

.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border-radius: 10px;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 20px;
    border-radius: 15px 15px 0 0 !important;
    font-weight: 600;
}

/* Stat Cards */
.stat-card {
    border-radius: 15px;
    padding: 25px;
    color: white;
    margin-bottom: 20px;
    border: none;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card.calls {
    background: linear-gradient(45deg, #3498db, #2980b9);
}

.stat-card.sms {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
}

.stat-card.agents {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
}

.stat-card.campaigns {
    background: linear-gradient(45deg, #e67e22, #d35400);
}

/* Button Styles */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), #2980b9);
}

.btn-success {
    background: linear-gradient(45deg, var(--success), #27ae60);
}

.btn-danger {
    background: linear-gradient(45deg, var(--danger), #c0392b);
}

.btn-warning {
    background: linear-gradient(45deg, var(--warning), #e67e22);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Table Styles */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    background: linear-gradient(45deg, var(--secondary), #34495e);
    color: white;
    border: none;
    padding: 15px;
    font-weight: 500;
}

.table td {
    padding: 15px;
    vertical-align: middle;
    border-color: #eee;
}

/* Badge Styles */
.badge {
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background: linear-gradient(45deg, var(--secondary), #34495e);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

.modal-footer {
    border-top: 1px solid #eee;
    border-radius: 0 0 15px 15px;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    transform: translateY(-2px);
}

/* Tab Styles */
.nav-tabs {
    border-bottom: 2px solid #eee;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 8px 8px 0 0;
    padding: 12px 25px;
    color: #666;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(45deg, var(--primary), #2980b9);
    color: white;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }
    
    .sidebar.active {
        margin-left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-content.active {
        margin-left: 250px;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Index Page Styles */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.features-section {
    padding: 80px 0;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}