/* ==========================================
   CAHILO - ADMIN PANEL CSS
   ========================================== */

:root {
    --primary: #D4844A;
    --primary-dark: #B86C35;
    --secondary: #2C5530;
    --accent: #C9A052;
    --dark: #1a1a2e;
    --sidebar-bg: #16213e;
    --sidebar-text: #a8b2d8;
    --sidebar-active: #D4844A;
    --bg: #f0f2f5;
    --card-bg: #ffffff;
    --text: #2D2419;
    --text-light: #6B6B6B;
    --border: #e0e0e0;
    --success: #25D366;
    --danger: #DC3545;
    --warning: #FFC107;
    --info: #17a2b8;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 10px;
    --radius-sm: 6px;
    --transition: all 0.3s ease;
    --sidebar-width: 240px;
}

/* Dark Theme */
body.dark-theme {
    --bg: #0d1117;
    --card-bg: #161b22;
    --text: #e6edf3;
    --text-light: #8b949e;
    --border: #30363d;
    --shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    transition: var(--transition);
}

/* ==========================================
   SIDEBAR
   ========================================== */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 200;
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-logo {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.sidebar-logo img {
    width: 100px;
    height: auto;
    object-fit: contain;
}

.sidebar-nav {
    padding: 1rem 0;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.nav-item i {
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
    padding-left: 1.8rem;
}

.nav-item.active {
    color: var(--sidebar-active);
    background: rgba(212,132,74,0.12);
    border-left: 3px solid var(--sidebar-active);
}

.sidebar-footer {
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ==========================================
   MAIN WRAPPER
   ========================================== */
.main-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================
   HEADER
   ========================================== */
.admin-header {
    background: var(--card-bg);
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: none;
}

.sidebar-toggle:hover { background: var(--bg); color: var(--text); }

.header-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    flex: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-social {
    display: flex;
    gap: 0.4rem;
}

.social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
    color: white;
}

.social-btn.instagram { background: #E4405F; }
.social-btn.facebook  { background: #1877F2; }
.social-btn.tiktok    { background: #000; }
.social-btn:hover { transform: scale(1.15); }

.btn-icon {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-light);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-icon:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ==========================================
   MAIN CONTENT
   ========================================== */
.main-content {
    padding: 2rem;
    flex: 1;
}

.content-section {
    display: none;
}

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

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.section-header p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.2rem;
}

/* ==========================================
   STATS GRID
   ========================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--card-color, var(--primary));
    transition: var(--transition);
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--card-color, var(--primary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.stat-info p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.2rem;
}

/* ==========================================
   CHARTS
   ========================================== */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.chart-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-card h3 i { color: var(--primary); }

/* ==========================================
   DASHBOARD CARDS
   ========================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.dashboard-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.dashboard-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-card h3 i { color: var(--primary); }

/* ==========================================
   TABLES
   ========================================== */
.table-container {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

thead {
    background: var(--bg);
}

th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    white-space: nowrap;
    border-bottom: 2px solid var(--border);
}

td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

tbody tr:hover { background: var(--bg); }
tbody tr:last-child td { border-bottom: none; }

/* ==========================================
   BADGES / STATUS
   ========================================== */
.status-badge {
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-pending   { background: #FFF3CD; color: #856404; }
.status-confirmed { background: #D4EDDA; color: #155724; }
.status-cancelled { background: #F8D7DA; color: #721c24; }
.status-preparing { background: #CCE5FF; color: #004085; }
.status-delivered, .status-completed { background: #D4EDDA; color: #155724; }
.status-approved  { background: #D4EDDA; color: #155724; }

.tier-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
}
.tier-bronze { background: #CD7F32; color: white; }
.tier-silver { background: #C0C0C0; color: #333; }
.tier-gold   { background: #FFD700; color: #333; }
.tier-vip    { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }

/* ==========================================
   FILTER TABS
   ========================================== */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background: var(--card-bg);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ==========================================
   ACTION BUTTONS
   ========================================== */
.action-btns {
    display: flex;
    gap: 0.4rem;
    white-space: nowrap;
}

.btn-sm {
    padding: 0.3rem 0.7rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Poppins', sans-serif;
}

.btn-edit   { background: #CCE5FF; color: #004085; }
.btn-delete { background: #F8D7DA; color: #721c24; }
.btn-approve { background: #D4EDDA; color: #155724; }
.btn-whatsapp { background: #D4EDDA; color: #155724; }

.btn-sm:hover { opacity: 0.8; transform: scale(1.05); }

/* Main Buttons */
.btn-primary, .btn-secondary {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 2px 8px rgba(212,132,74,0.4);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(212,132,74,0.5); }

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

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

/* ==========================================
   GALLERY ADMIN
   ========================================== */
.gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item-admin {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    group: true;
}

.gallery-item-admin img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.gallery-item-admin .gallery-info {
    padding: 0.75rem;
}

.gallery-item-admin .gallery-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.gallery-item-admin .gallery-actions {
    display: flex;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--border);
}

/* ==========================================
   LOYALTY STATS
   ========================================== */
.loyalty-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.loyalty-badge {
    flex: 1;
    min-width: 100px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.loyalty-badge i { font-size: 1.5rem; }
.loyalty-badge span { font-size: 1.4rem; font-weight: 700; }
.loyalty-badge small { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; }

.loyalty-badge.bronze i { color: #CD7F32; }
.loyalty-badge.silver i { color: #C0C0C0; }
.loyalty-badge.gold i   { color: #FFD700; }
.loyalty-badge.vip i    { color: #667eea; }

/* ==========================================
   SEARCH BAR
   ========================================== */
.search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
}

.search-bar i { color: var(--text-light); }

.search-bar input {
    border: none;
    background: none;
    font-size: 0.9rem;
    color: var(--text);
    flex: 1;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

/* ==========================================
   CRM KANBAN
   ========================================== */
.funnel-kanban {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.kanban-col {
    min-width: 220px;
    flex: 1;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.kanban-header {
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.kanban-count {
    background: rgba(255,255,255,0.25);
    border-radius: 12px;
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
}

.kanban-cards {
    padding: 0.75rem;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kanban-card {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    font-size: 0.82rem;
}

.kanban-card h4 {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
}

.kanban-card .kc-meta {
    color: var(--text-light);
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.kanban-card .kc-actions {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

/* ==========================================
   CAMPAIGNS GRID
   ========================================== */
.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.campaign-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

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

.campaign-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.campaign-header h3 { font-size: 1rem; }
.campaign-header .camp-type { font-size: 0.72rem; opacity: 0.85; margin-top: 0.2rem; }

.campaign-toggle { cursor: pointer; }

.campaign-body {
    padding: 1.25rem;
}

.campaign-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
}

.campaign-detail:last-of-type { border: none; }
.campaign-detail span:first-child { color: var(--text-light); }
.campaign-detail span:last-child  { font-weight: 600; }

.campaign-code {
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.8rem;
    font-family: monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin: 0.75rem 0;
    letter-spacing: 2px;
}

.campaign-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.5rem;
}

/* ==========================================
   REVIEWS
   ========================================== */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.review-item-admin {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.review-header-admin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.review-stars { color: #FFC107; font-size: 0.85rem; }

/* ==========================================
   SETTINGS FORM
   ========================================== */
.settings-form {
    max-width: 700px;
}

.form-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.form-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

/* ==========================================
   FORMS
   ========================================== */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 0.875rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212,132,74,0.12);
    background: var(--card-bg);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.flex-2 { grid-column: span 2; }

.checkbox-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    padding: 0;
}

/* ==========================================
   IMAGE UPLOAD
   ========================================== */
.image-input-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.img-tab {
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg);
    color: var(--text-light);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.img-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(212,132,74,0.05);
    color: var(--primary);
}

.upload-area i { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.upload-area p { font-size: 0.9rem; margin-bottom: 0.3rem; }
.upload-area small { font-size: 0.75rem; }

.img-preview {
    margin-top: 0.75rem;
}

.img-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid var(--border);
}

/* ==========================================
   MODALS
   ========================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(3px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.modal-lg { max-width: 720px; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius) var(--radius) 0 0;
    color: white;
}

.modal-header h2 { font-size: 1.1rem; }

.close-modal {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.close-modal:hover { background: rgba(255,255,255,0.35); transform: rotate(90deg); }

.modal-content form {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

/* ==========================================
   TOAST
   ========================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--dark);
    color: white;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success { background: #155724; border-left: 4px solid var(--success); }
.toast.error   { background: #721c24; border-left: 4px solid var(--danger); }
.toast.info    { background: #004085; border-left: 4px solid var(--info); }

/* ==========================================
   EMPTY STATE
   ========================================== */
.empty-state {
    text-align: center;
    padding: 2.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-content { padding: 1rem; }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .funnel-kanban {
        gap: 0.75rem;
    }
    
    .kanban-col {
        min-width: 180px;
    }
    
    .flex-2 { grid-column: span 1; }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header-social { display: none; }
}
