/*
 * WhatsApp Marketing SaaS - PureGold Design Theme
 * Custom CSS - No inline styles allowed
 */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #10B981;
    --primary-hover: #059669;
    --primary-light: #D1FAE5;
    --secondary-color: #3B82F6;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --success-color: #10B981;
    --info-color: #3B82F6;

    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;

    --bg-primary: #F9FAFB;
    --bg-secondary: #FFFFFF;
    --bg-sidebar: #FFFFFF;

    --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);

    --sidebar-width: 250px;
    --header-height: 70px;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ===== LAYOUT STRUCTURE ===== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar-logo {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.logo-text h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.logo-text p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    gap: 12px;
}

.nav-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.nav-item.active {
    background-color: var(--primary-color);
    color: white;
    border-left-color: var(--primary-hover);
}

.nav-item-icon {
    width: 20px;
    font-size: 18px;
}

.nav-item-text {
    font-size: 14px;
    font-weight: 500;
}

/* Navigation Divider and Section */
.nav-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 15px 20px;
}

.nav-section-title {
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Logout Button */
.sidebar-logout {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    background-color: white;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background-color: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

/* ===== MAIN CONTENT AREA ===== */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

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

/* ===== HEADER ===== */
.header {
    height: var(--header-height);
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.header-left h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name {
    text-align: right;
}

.user-name strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
}

.user-name span {
    font-size: 12px;
    color: var(--text-secondary);
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* User Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--bg-primary);
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0;
}

/* Wallet Balance Display */
.wallet-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wallet-icon {
    font-size: 18px;
}

.wallet-amount {
    font-size: 16px;
    font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
}

/* ===== PAGE CONTENT ===== */
.page-content {
    padding: 30px;
}

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

.stat-card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 15px;
}

.stat-card-icon.blue {
    background-color: var(--secondary-color);
}

.stat-card-icon.green {
    background-color: var(--success-color);
}

.stat-card-icon.red {
    background-color: var(--danger-color);
}

.stat-card-icon.purple {
    background-color: #8B5CF6;
}

.stat-card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stat-card-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-card-change {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.stat-card-change.positive {
    color: var(--success-color);
    background-color: var(--primary-light);
}

.stat-card-change.negative {
    color: var(--danger-color);
    background-color: #FEE2E2;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

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

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

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

.btn-secondary:hover {
    background-color: #2563EB;
}

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

.btn-danger:hover {
    background-color: #DC2626;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--bg-primary);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 40px;
}

/* ===== TABLES ===== */
.table-container {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background-color: var(--bg-primary);
}

.table th {
    padding: 15px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-primary);
}

.table tbody tr:hover {
    background-color: var(--bg-primary);
}

/* ===== BADGES ===== */
.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.badge-success {
    background-color: var(--primary-light);
    color: var(--success-color);
}

.badge-warning {
    background-color: #FEF3C7;
    color: var(--warning-color);
}

.badge-danger {
    background-color: #FEE2E2;
    color: var(--danger-color);
}

.badge-info {
    background-color: #DBEAFE;
    color: var(--secondary-color);
}

/* ===== CARDS ===== */
.card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 20px;
}

/* ===== FILTERS ===== */
.filters-section {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.filters-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background-color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

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

/* ===== ALERTS ===== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: var(--primary-light);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.alert-danger {
    background-color: #FEE2E2;
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.alert-warning {
    background-color: #FEF3C7;
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

.alert-info {
    background-color: #DBEAFE;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet devices (768px - 1024px) */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header {
        padding: 0 20px;
    }

    .page-content {
        padding: 20px;
    }

    .header-right {
        gap: 10px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .wallet-balance {
        padding: 6px 12px;
    }

    .wallet-amount {
        font-size: 14px;
    }
}

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 280px;
        --header-height: auto;
    }

    /* Sidebar mobile behavior */
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

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

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

    .mobile-menu-toggle {
        display: block;
        margin-right: 10px;
    }

    /* Header mobile layout */
    .header {
        padding: 15px;
        flex-wrap: wrap;
        height: auto;
        min-height: var(--header-height);
    }

    .header-left {
        display: flex;
        align-items: center;
        width: 100%;
        margin-bottom: 10px;
    }

    .header-left h1 {
        font-size: 18px;
    }

    .header-right {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: space-between;
    }

    /* Hide user name on mobile */
    .header-user .user-name {
        display: none;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    /* Wallet balance mobile */
    .wallet-balance {
        padding: 6px 10px;
        font-size: 13px;
    }

    .wallet-icon {
        font-size: 16px;
    }

    .wallet-amount {
        font-size: 13px;
    }

    /* Button mobile styles */
    .btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .btn span:last-child {
        display: none;
    }

    .btn span:first-child {
        margin: 0;
    }

    /* Stats grid mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-card-value {
        font-size: 24px;
    }

    /* Filters mobile */
    .filters-grid {
        grid-template-columns: 1fr;
    }

    /* Page content mobile */
    .page-content {
        padding: 15px;
    }

    /* Table mobile - horizontal scroll */
    .table-container {
        overflow-x: auto;
    }

    .table {
        min-width: 600px;
    }

    .table th,
    .table td {
        padding: 10px;
        font-size: 13px;
    }

    /* Card mobile */
    .card-header {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .card-title {
        font-size: 16px;
    }

    .card-body {
        padding: 15px;
    }

    /* Form mobile */
    .form-group {
        margin-bottom: 15px;
    }

    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Modal mobile */
    .modal-container {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    .modal-body {
        padding: 15px;
    }

    /* Alert mobile */
    .alert {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    .header-left h1 {
        font-size: 16px;
    }

    .header-right {
        gap: 5px;
    }

    .btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .stat-card-value {
        font-size: 20px;
    }

    .stat-card-label {
        font-size: 12px;
    }

    .page-content {
        padding: 10px;
    }

    .card-header,
    .card-body {
        padding: 12px;
    }

    .modal-container {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .sidebar {
        height: 100vh;
        overflow-y: auto;
    }

    .modal-container {
        max-height: 95vh;
    }
}

/* ===== UTILITY CLASSES ===== */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-2 { gap: 1rem; }

.w-full { width: 100%; }

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.modal-container {
    position: relative;
    z-index: 10001;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* ===== CHAT PAGE RESPONSIVE STYLES ===== */
/* Base chat styles for all screens */
.chat-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    height: calc(100vh - 200px);
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
    .chat-container {
        grid-template-columns: 300px 1fr;
        height: calc(100vh - 180px);
    }
}

@media (max-width: 768px) {
    .chat-container {
        grid-template-columns: 1fr;
        height: calc(100vh - 160px);
        position: relative;
    }

    .contacts-sidebar {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 10;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

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

    .chat-area {
        width: 100%;
    }

    /* Add back button to chat header on mobile */
    .chat-header::before {
        content: '← ';
        cursor: pointer;
        font-size: 24px;
        margin-right: 10px;
    }

    /* Adjust message width for mobile */
    .message {
        max-width: 85%;
    }

    .message-bubble {
        font-size: 14px;
        padding: 8px 12px;
    }

    .message-time {
        font-size: 10px;
    }

    /* Mobile input area */
    .message-input-area {
        padding: 12px;
    }

    .message-input-container textarea {
        font-size: 16px; /* Prevents iOS zoom */
    }

    .send-button {
        padding: 10px 18px;
        font-size: 13px;
    }

    /* Contact item mobile */
    .contact-item {
        padding: 12px 15px;
    }

    .contact-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .contact-name {
        font-size: 14px;
    }

    .contact-last-message {
        font-size: 12px;
    }

    /* Search box mobile */
    .search-box {
        padding: 12px;
    }

    .search-box input {
        font-size: 16px; /* Prevents iOS zoom */
    }
}

@media (max-width: 480px) {
    .chat-container {
        height: calc(100vh - 140px);
        border-radius: 8px;
    }

    .chat-header {
        padding: 12px;
    }

    .chat-header-avatar {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .chat-header-info h3 {
        font-size: 14px;
    }

    .chat-header-info p {
        font-size: 12px;
    }

    .messages-area {
        padding: 12px;
        gap: 8px;
    }

    .message-bubble {
        font-size: 13px;
        padding: 7px 10px;
    }

    .send-button {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* ===== SETTINGS PAGE TAB RESPONSIVE ===== */
@media (max-width: 768px) {
    .settings-tabs {
        overflow-x: auto;
        display: flex;
        gap: 5px;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }

    .tab-button {
        white-space: nowrap;
        font-size: 13px;
        padding: 8px 12px;
    }

    .settings-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .tab-button {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* ===== CAMPAIGN/TEMPLATE CARDS RESPONSIVE ===== */
@media (max-width: 768px) {
    .template-card,
    .campaign-card {
        padding: 12px;
    }

    .template-preview,
    .campaign-preview {
        max-height: 150px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== DASHBOARD CHARTS RESPONSIVE ===== */
@media (max-width: 768px) {
    .chart-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    canvas {
        max-width: 100%;
        height: auto !important;
    }
}

/* ===== CONTACT IMPORT/EXPORT RESPONSIVE ===== */
@media (max-width: 768px) {
    .import-export-buttons {
        flex-direction: column;
        width: 100%;
    }

    .import-export-buttons .btn {
        width: 100%;
    }
}

/* ===== MEDIA LIBRARY GRID RESPONSIVE ===== */
@media (max-width: 1024px) {
    .media-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .media-item {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .media-grid {
        grid-template-columns: 1fr;
    }
}
