/* Dashboard and Admin Panel Styles - Redesigned */

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

* {
    box-sizing: border-box;
}

.admin-body {
    background: var(--bg-secondary);
    min-height: 100vh;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Header */
.admin-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.admin-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: all 0.3s;
}

.admin-user:hover {
    background: var(--border);
    transform: translateY(-1px);
}

/* Buttons */
.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    font-family: inherit;
}

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

.admin-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

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

.admin-btn-success:hover {
    background: #16a34a;
}

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

.admin-btn-danger:hover {
    background: #dc2626;
}

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

.admin-btn-warning:hover {
    background: #d97706;
}

/* Container */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* Gallery Grid - Redesigned */
.galleries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 1.5rem;
}

/* Gallery Card - Completely Redesigned */
.gallery-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.gallery-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
}

.gallery-card.gallery-inactive {
    opacity: 0.6;
}

.gallery-card.gallery-inactive:hover {
    opacity: 1;
}

/* Corner Banner for Delete Requests */
.corner-banner {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.5rem 1rem;
    padding-right: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    transform-origin: top right;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0.75rem 100%);
    animation: banner-pulse 2s ease-in-out infinite;
}

.corner-banner::before {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 1.5rem 0.5rem 0;
    border-color: transparent #991b1b transparent transparent;
}

.corner-banner i {
    font-size: 0.875rem;
    animation: shake-banner 0.6s ease-in-out infinite;
}

@keyframes banner-pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
    }
}

@keyframes shake-banner {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

/* Card Header */
.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: white;
}

.card-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    outline: none;
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: text;
    line-height: 1.4;
}

.card-title:hover {
    background: var(--bg-secondary);
}

.card-title:focus {
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.card-badges {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    align-items: flex-end;
    flex-shrink: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge i {
    font-size: 0.625rem;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-inactive {
    background: #f1f5f9;
    color: #64748b;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
    outline: none;
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: text;
}

.card-description:hover {
    background: var(--bg-secondary);
}

.card-description:focus {
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.card-description:empty:before {
    content: 'Click to add description...';
    color: var(--text-muted);
    font-style: italic;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.stat-icon {
    font-size: 1.25rem;
    color: var(--primary);
    width: 24px;
    text-align: center;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
    margin: 0 0.5rem;
}

/* Action Section */
.action-section {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-blue);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}

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

.secondary-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-icon:active {
    transform: translateY(0);
}

/* Share Section */
.share-section {
    padding: 1.25rem 1.5rem;
}

.share-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* URL Display Component (Standardized across all admin pages) */
.url-display {
    display: flex;
    align-items: stretch;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.url-input {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    color: #64748b;
    outline: none;
}

.url-input:focus {
    color: var(--text-primary);
}

.url-copy-btn {
    padding: 1rem 1.5rem;
    background: #3b82f6;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.url-copy-btn:hover {
    background: #2563eb;
}

.url-copy-btn:active {
    transform: scale(0.98);
}

/* Toasts */
.toast-container {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
    pointer-events: none;
}

.toast {
    background: #111827;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 0.9375rem;
    font-weight: 500;
    pointer-events: all;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .galleries-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-header-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        align-items: center;
        justify-content: space-between;
        padding: 0 1rem;
    }
    
    .admin-header-right {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
    }
    
    .admin-btn {
        flex: 0 0 auto;
        min-width: 0;
        justify-content: center;
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .admin-btn span {
        display: inline;
    }
    
    .admin-logo {
        font-size: 1.25rem;
    }
    
    .admin-container {
        padding: 1rem;
    }
    
    .galleries-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Keep stats in a row on mobile */
    .stats-bar {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .stat {
        flex: 1;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding: 0.5rem;
    }
    
    .stat-icon {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .stat-info {
        text-align: center;
    }
    
    .stat-value {
        font-size: 0.875rem;
        font-weight: 600;
    }
    
    .stat-label {
        font-size: 0.625rem;
    }
    
    .stat-divider {
        display: block;
        height: auto;
        align-self: stretch;
    }
    
    /* Reorganize card header on mobile */
    .card-header {
        padding: 1rem;
    }
    
    .card-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .card-title {
        font-size: 1.125rem;
        width: 100%;
    }
    
    .card-description {
        order: 2;
        font-size: 0.8125rem;
    }
    
    .card-badges {
        order: 3;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    /* Position active badge under corner notification */
    .corner-banner {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    /* Manage Gallery Page Mobile Optimization */
    
    /* Gallery info header */
    .admin-container > div:first-of-type [style*="display: flex"][style*="justify-content: space-between"] {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    /* Stats grid - keep in one row on mobile */
    [style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.5rem !important;
        padding: 0.75rem !important;
    }
    
    [style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] > div {
        text-align: center !important;
    }
    
    [style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] [style*="color: #64748b"] {
        font-size: 0.75rem !important;
    }
    
    [style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] [style*="font-size: 1.5rem"] {
        font-size: 1rem !important;
    }
    
    [style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] i {
        font-size: 0.875rem !important;
    }
    
    /* Settings grid - stack on mobile */
    [style*="grid-template-columns: repeat(auto-fit, minmax(400px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* TV Slideshow and Embed sections */
    [style*="background: linear-gradient"][style*="padding: 2rem"] {
        padding: 1.5rem 1rem !important;
    }
    
    [style*="display: flex"][style*="align-items: center"][style*="gap: 1rem"] i[style*="font-size: 2rem"] {
        font-size: 1.5rem !important;
    }
    
    /* Form inputs and buttons */
    [style*="display: flex"][style*="gap: 1rem"][style*="margin-top"] {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    input[type="number"][style*="width: 120px"] {
        width: 100% !important;
        max-width: 150px !important;
    }
    
    /* Moderation sections */
    [style*="display: flex"][style*="gap: 2rem"][style*="margin-bottom: 2rem"] {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    /* Simple and Extreme Monitor cards */
    [style*="flex: 1"][style*="padding: 1.5rem"] {
        padding: 1rem !important;
    }
    
    /* Review photo section */
    [style*="min-height: 400px"][style*="display: flex"] {
        min-height: 300px !important;
        padding: 1rem !important;
    }
    
    /* Approved/Denied grids */
    [style*="grid-template-columns: repeat(5, 1fr)"] {
        grid-template-columns: repeat(3, 1fr) !important;
        padding: 0.75rem !important;
    }
    
    /* Delete requests */
    [style*="display: flex"][style*="gap: 1.5rem"][style*="align-items: start"] {
        align-items: flex-start !important;
    }
    
    [style*="display: flex"][style*="gap: 1.5rem"][style*="align-items: start"] img {
        width: 80px !important;
        height: 80px !important;
        flex-shrink: 0 !important;
    }
    
    [style*="display: flex"][style*="gap: 1.5rem"][style*="align-items: start"] > div {
        min-width: 0 !important;
        flex: 1 !important;
    }
    
    [style*="display: flex"][style*="gap: 1.5rem"][style*="align-items: start"] h4 {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        max-width: 100% !important;
    }
    
    [style*="display: flex"][style*="gap: 1.5rem"][style*="align-items: start"] p {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }
    
    /* Code/embed textarea */
    textarea[style*="font-family: 'Courier New'"] {
        font-size: 0.75rem !important;
        padding: 0.75rem !important;
    }
    
    /* Copy buttons */
    button[style*="background: rgba(255,255,255,0.2)"] {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Checkbox groups */
    .checkbox-label {
        padding: 0.875rem !important;
    }
    
    .checkbox-text strong {
        font-size: 0.9375rem !important;
    }
    
    .checkbox-text small {
        font-size: 0.8125rem !important;
    }
    
    /* Photo queue grid - 2 columns on mobile */
    #simpleQueue {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    /* Review buttons side by side on mobile */
    [style*="display: flex"][style*="gap: 1rem"][style*="justify-content: center"] {
        gap: 0.75rem !important;
    }
    
    .review-btn {
        flex: 1;
        padding: 0.875rem 1rem !important;
        font-size: 1rem !important;
    }
    
    /* General text overflow prevention for all sections */
    .admin-container h1,
    .admin-container h2,
    .admin-container h3,
    .admin-container h4,
    .admin-container p {
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }
}

@media (max-width: 480px) {
    /* Stats even more compact on very small screens */
    .stat-icon {
        font-size: 0.875rem;
    }
    
    .stat-value {
        font-size: 0.8125rem;
    }
    
    .stat-label {
        font-size: 0.5625rem;
    }
    
    /* Smaller padding on very small screens */
    .card-header {
        padding: 0.75rem;
    }
    
    .stats-bar {
        padding: 0.5rem;
        gap: 0.25rem;
    }
    
    .stat {
        padding: 0.375rem;
    }
    
    /* Manage Gallery - Extra small screens */
    
    /* Header stays compact: upgrade icon + name */
    .admin-header-right {
        flex-direction: row;
        width: auto;
    }
    
    /* Stats grid - keep in one row even on very small screens */
    [style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.375rem !important;
        padding: 0.625rem !important;
    }
    
    [style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] [style*="color: #64748b"] {
        font-size: 0.625rem !important;
    }
    
    [style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] [style*="font-size: 1.5rem"] {
        font-size: 0.875rem !important;
    }
    
    [style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] i {
        font-size: 0.75rem !important;
        display: block !important;
        margin-bottom: 0.25rem !important;
    }
    
    /* Approved/Denied grids - 2 columns on tiny screens */
    [style*="grid-template-columns: repeat(5, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
    
    /* Delete requests - stack image and content */
    [style*="display: flex"][style*="gap: 1.5rem"][style*="align-items: start"] {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    [style*="display: flex"][style*="gap: 1.5rem"][style*="align-items: start"] img {
        width: 100% !important;
        height: auto !important;
        max-width: 200px !important;
    }
    
    [style*="display: flex"][style*="gap: 1.5rem"][style*="align-items: start"] > div {
        width: 100% !important;
    }
    
    [style*="display: flex"][style*="gap: 1.5rem"][style*="align-items: start"] h4,
    [style*="display: flex"][style*="gap: 1.5rem"][style*="align-items: start"] p {
        font-size: 0.9375rem !important;
    }
    
    /* Reduce padding everywhere */
    .admin-container > div[style*="padding: 2rem"] {
        padding: 1rem !important;
    }
    
    [style*="padding: 1.5rem"] {
        padding: 0.875rem !important;
    }
    
    /* Section titles */
    h3[style*="font-size: 1.25rem"] {
        font-size: 1.125rem !important;
    }
    
    h2[style*="font-size: 1.75rem"] {
        font-size: 1.375rem !important;
    }
    
    /* Review buttons */
    .review-btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.9375rem !important;
    }
}


/* Upgrade next to user name */
.admin-user-cluster {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    width: auto;
    max-width: 100%;
    min-width: 0;
}

.admin-upgrade-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #059669, #10b981);
    transition: all 0.3s;
}

.admin-upgrade-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .admin-header-container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .admin-header-right {
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 0.5rem;
        width: auto;
        flex: 1;
    }

    .admin-user-cluster {
        display: inline-flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.375rem;
        width: auto;
        max-width: calc(100% - 3rem);
        min-width: 0;
        flex: 1 1 auto;
        order: 0;
        margin-right: 0;
    }

    .admin-upgrade-btn {
        display: inline-flex;
        flex-direction: row;
        width: 2.25rem;
        height: 2.25rem;
        padding: 0;
        border-radius: 999px;
        justify-content: center;
        align-items: center;
        flex: 0 0 auto;
    }

    .admin-upgrade-btn .admin-upgrade-label {
        display: none;
    }

    .admin-user {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        padding: 0.4rem 0.75rem;
        font-size: 0.875rem;
        max-width: min(42vw, 12rem);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex: 0 1 auto;
        min-width: 0;
    }

    .admin-btn {
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .admin-header-right {
        flex-direction: row;
        width: auto;
        align-items: center;
    }

    .admin-header-right > .admin-btn {
        width: 2.25rem;
        height: 2.25rem;
        padding: 0;
        border-radius: 999px;
        justify-content: center;
        font-size: 0;
        gap: 0;
    }

    .admin-header-right > .admin-btn i {
        font-size: 0.95rem;
    }
}
