/**
 * RESLYNX Agency Dashboard - Main Styles
 * Version: 1.0.0
 */

/* ============================================
   Variables CSS
   ============================================ */
:root {
    --reslynx-primary: #1e73be;
    --reslynx-secondary: #6c757d;
    --reslynx-success: #28a745;
    --reslynx-danger: #dc3545;
    --reslynx-warning: #ffc107;
    --reslynx-info: #17a2b8;
    --reslynx-light: #f8f9fa;
    --reslynx-dark: #343a40;
    
    --reslynx-border-radius: 8px;
    --reslynx-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --reslynx-transition: all 0.3s ease;
}

/* ============================================
   Dashboard Container
   ============================================ */
.reslynx-dashboard {
    background: #f5f7fa;
    min-height: 100vh;
    padding: 20px;
}

.reslynx-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   Dashboard Cards
   ============================================ */
.reslynx-card {
    background: white;
    border-radius: var(--reslynx-border-radius);
    box-shadow: var(--reslynx-box-shadow);
    padding: 24px;
    margin-bottom: 20px;
    transition: var(--reslynx-transition);
}

.reslynx-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.reslynx-card-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.reslynx-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--reslynx-dark);
    margin: 0;
}

.reslynx-card-body {
    padding: 0;
}

/* ============================================
   Stats Widgets
   ============================================ */
.reslynx-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.reslynx-stat-widget {
    background: linear-gradient(135deg, var(--reslynx-primary), #155a9d);
    color: white;
    padding: 24px;
    border-radius: var(--reslynx-border-radius);
    box-shadow: var(--reslynx-box-shadow);
}

.reslynx-stat-widget.success {
    background: linear-gradient(135deg, var(--reslynx-success), #1e7e34);
}

.reslynx-stat-widget.warning {
    background: linear-gradient(135deg, var(--reslynx-warning), #d39e00);
}

.reslynx-stat-widget.info {
    background: linear-gradient(135deg, var(--reslynx-info), #117a8b);
}

.reslynx-stat-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.reslynx-stat-value {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

/* ============================================
   Buttons
   ============================================ */
.reslynx-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--reslynx-border-radius);
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--reslynx-transition);
    border: none;
}

.reslynx-btn-primary {
    background: var(--reslynx-primary);
    color: white;
}

.reslynx-btn-primary:hover {
    background: #155a9d;
    color: white;
}

.reslynx-btn-success {
    background: var(--reslynx-success);
    color: white;
}

.reslynx-btn-success:hover {
    background: #1e7e34;
    color: white;
}

/* ============================================
   Tables
   ============================================ */
.reslynx-table {
    width: 100%;
    border-collapse: collapse;
}

.reslynx-table thead {
    background: var(--reslynx-light);
}

.reslynx-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--reslynx-dark);
    border-bottom: 2px solid #dee2e6;
}

.reslynx-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.reslynx-table tbody tr:hover {
    background: #f8f9fa;
}

/* ============================================
   Badges
   ============================================ */
.reslynx-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.reslynx-badge-success {
    background: #d4edda;
    color: #155724;
}

.reslynx-badge-warning {
    background: #fff3cd;
    color: #856404;
}

.reslynx-badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.reslynx-badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* ============================================
   Sidebar Navigation
   ============================================ */
.reslynx-sidebar {
    background: white;
    border-radius: var(--reslynx-border-radius);
    box-shadow: var(--reslynx-box-shadow);
    padding: 20px 0;
}

.reslynx-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.reslynx-sidebar-menu li {
    margin: 0;
}

.reslynx-sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--reslynx-dark);
    text-decoration: none;
    transition: var(--reslynx-transition);
}

.reslynx-sidebar-menu a:hover,
.reslynx-sidebar-menu a.active {
    background: var(--reslynx-primary);
    color: white;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .reslynx-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .reslynx-dashboard {
        padding: 10px;
    }
    
    .reslynx-card {
        padding: 16px;
    }
}
