/* CRM Unified Design System */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --card-shadow: 0 4px 15px rgba(0,0,0,0.1);
    --card-hover-shadow: 0 8px 25px rgba(0,0,0,0.15);
    --border-radius: 15px;
}

/* General Styles */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Container */
.header-container { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 25px;
    padding: 25px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
    color: white;
    text-align: center;
}

.logo { 
    max-width: 80px;
}

/* Cards */
.crm-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

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

.card-header-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 15px 20px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Buttons */
.btn-crm-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    color: white;
    font-weight: 500;
}

.btn-crm-secondary {
    background: var(--secondary-gradient);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    color: white;
    font-weight: 500;
}

.btn-crm-outline {
    border: 2px solid #667eea;
    border-radius: 25px;
    padding: 8px 18px;
    color: #667eea;
    background: transparent;
    font-weight: 500;
}

/* Stats & Badges */
.stats-container {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.stat-item {
    text-align: center;
    padding: 10px;
}

.stat-number {
    font-size: 1.5em;
    font-weight: bold;
    display: block;
}

.stat-success { color: #28a745; }
.stat-danger { color: #dc3545; }
.stat-info { color: #17a2b8; }
.stat-warning { color: #ffc107; }

.stats-badge {
    font-size: 0.75em;
    padding: 4px 8px;
    border-radius: 10px;
    margin: 2px;
}

/* Navigation */
.nav-container {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 4em;
    margin-bottom: 20px;
    color: #dee2e6;
}

/* Forms */
.form-control-crm {
    border-radius: 10px;
    border: 1px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control-crm:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Tables */
.table-crm {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.table-crm thead th {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 15px;
}

/* Progress Bars */
.progress-crm {
    height: 25px;
    border-radius: 12px;
    background: #e9ecef;
}

.progress-bar-crm {
    background: var(--primary-gradient);
    border-radius: 12px;
}

/* Alerts */
.alert-crm {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
}

/* Action Buttons */
.action-btn {
    border-radius: 20px;
    padding: 6px 15px;
    font-size: 0.85em;
    margin: 2px;
}

/* Recipients Preview */
.recipients-preview {
    max-height: 80px;
    overflow-y: auto;
    background: white;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    font-size: 0.85em;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        max-width: 60px;
    }
    
    .nav-container {
        justify-content: center;
    }
}