/* style.css - Premium Protocol Gifting Design System */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    /* Color Palette */
    --primary-deep: #0e3027;      /* Royal Emerald Dark */
    --primary-medium: #154734;    /* Emerald Medium */
    --primary-light: #1b5e46;     /* Emerald Accent */
    --accent-gold: #c5a880;       /* Royal Champagne Gold */
    --accent-gold-dark: #a98d65;  /* Deep Gold */
    --accent-gold-light: #dfcbaf; /* Soft Gold Highlight */
    
    --bg-base: #f7f6f2;           /* Soft Alabaster Sand */
    --bg-card: #ffffff;           /* Pure White */
    --bg-glass: rgba(255, 255, 255, 0.75);
    
    --text-primary: #1e293b;      /* Dark Slate */
    --text-muted: #64748b;        /* Cool Gray */
    --text-light: #f8fafc;        /* Off-white */
    
    /* System Colors */
    --status-pending: #d97706;     /* Warm Amber */
    --status-approved: #059669;    /* Emerald Green */
    --status-preparing: #2563eb;   /* Sapphire Blue */
    --status-delivered: #0d9488;   /* Teal */
    --status-rejected: #dc2626;    /* Crimson Red */
    
    /* Layout & Shadows */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 20px 50px rgba(14, 48, 39, 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Base resets & styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-deep);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, var(--primary-deep) 0%, #051612 100%);
    color: var(--text-light);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--accent-gold);
    box-shadow: var(--shadow-md);
}

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

.brand-section {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.brand-logo-container {
    background: radial-gradient(circle, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.4);
    border: 2px solid rgba(255,255,255,0.2);
}

.brand-logo-container svg {
    width: 28px;
    height: 28px;
    fill: var(--primary-deep);
}

.brand-info h1 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(to left, #ffffff, var(--accent-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-info p {
    font-size: 0.78rem;
    color: var(--accent-gold);
    opacity: 0.9;
    font-weight: 500;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(197, 168, 128, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.user-badge svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-gold);
}

.btn-logout {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-logout:hover {
    background: rgba(220, 38, 38, 0.15);
    border-color: var(--status-rejected);
    color: #fca5a5;
}

/* Hero Section */
.hero-banner {
    background: linear-gradient(rgba(14, 48, 39, 0.85), rgba(5, 22, 18, 0.95)), url('https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?auto=format&fit=crop&q=80&w=2000') no-repeat center center;
    background-size: cover;
    color: var(--text-light);
    padding: 4.5rem 2rem;
    text-align: center;
    border-bottom: 4px solid var(--accent-gold);
    position: relative;
    overflow: hidden;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.hero-tag {
    display: inline-block;
    color: var(--primary-deep);
    background-color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.35rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 10px rgba(197, 168, 128, 0.2);
}

.hero-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.85;
    font-weight: 300;
    line-height: 1.7;
}

/* Container */
.main-wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1.5rem;
    flex: 1;
}

/* Tabs & Navigation within Dashboards */
.tabs-navigation {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding-bottom: 1rem;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.tab-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-muted);
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary-medium);
    background: rgba(21, 71, 52, 0.04);
}

.tab-btn.active {
    color: var(--primary-deep);
    background: rgba(197, 168, 128, 0.15);
    box-shadow: inset 0 -2px 0 var(--accent-gold);
    border: 1px solid rgba(197, 168, 128, 0.25);
}

.tab-btn.active svg {
    stroke: var(--primary-deep);
}

/* Shopping View Grid */
.category-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-right: 4px solid var(--accent-gold);
}

.category-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-badge {
    padding: 0.45rem 1.2rem;
    background: var(--bg-base);
    color: var(--text-primary);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}

.filter-badge:hover, .filter-badge.active {
    background: var(--primary-deep);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(14, 48, 39, 0.2);
}

.search-box {
    position: relative;
    width: 320px;
}

.search-box input {
    width: 100%;
    padding: 0.6rem 2.8rem 0.6rem 1.2rem;
    border-radius: 30px;
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 0.9rem;
    background: var(--bg-base);
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary-medium);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(21, 71, 52, 0.1);
}

.search-box svg {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
}

/* Product Cards Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(197, 168, 128, 0.3);
}

.product-image-wrapper {
    position: relative;
    height: 240px;
    width: 100%;
    overflow: hidden;
    background-color: #eae8e3;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.08);
}

.product-audience-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(14, 48, 39, 0.9);
    backdrop-filter: blur(4px);
    color: var(--accent-gold);
    padding: 0.3rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    border: 1px solid rgba(197, 168, 128, 0.3);
    z-index: 10;
}

.product-stock-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 0.25rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 4px;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.badge-available {
    background: rgba(5, 150, 105, 0.9);
    color: white;
}

.badge-limited {
    background: rgba(217, 119, 6, 0.9);
    color: white;
}

.badge-unavailable {
    background: rgba(220, 38, 38, 0.9);
    color: white;
}

.product-info-wrapper {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-cat {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.2rem;
}

.product-excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem;
}

.product-card-footer {
    margin-top: auto;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-details {
    width: 100%;
    background: var(--primary-deep);
    color: var(--text-light);
    border: none;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid var(--primary-medium);
}

.btn-details:hover {
    background: var(--primary-medium);
    box-shadow: 0 4px 12px rgba(21, 71, 52, 0.25);
    color: var(--accent-gold);
}

.btn-details svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Modal Windows */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 48, 39, 0.45);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--accent-gold);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.modal-overlay.active .modal-content-container {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: #fee2e2;
    color: var(--status-rejected);
    border-color: #fca5a5;
    transform: rotate(90deg);
}

.modal-close-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
}

/* Product Detail inside Modal */
.detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 0;
    min-height: 480px;
}

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

.detail-image-section {
    background: #eae8e3;
    position: relative;
    min-height: 300px;
}

.detail-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info-section {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.detail-cat {
    color: var(--accent-gold-dark);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.detail-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-deep);
    line-height: 1.4;
    margin-bottom: 1rem;
}

.detail-badge-group {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.detail-meta-pill {
    background: var(--bg-base);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid rgba(0,0,0,0.05);
}

.detail-desc-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    border-right: 3px solid var(--accent-gold);
    padding-right: 0.5rem;
}

.detail-description {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.detail-action-box {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.btn-request-gift {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-medium) 100%);
    color: var(--text-light);
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 6px 15px rgba(14, 48, 39, 0.2);
    border: 1px solid var(--accent-gold);
}

.btn-request-gift:hover {
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-light) 100%);
    color: var(--accent-gold);
    box-shadow: 0 8px 25px rgba(14, 48, 39, 0.35);
    transform: translateY(-2px);
}

.btn-request-gift svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Custom Request Form */
.request-form-container {
    padding: 2.5rem;
}

.form-title-section {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-bottom: 1rem;
}

.form-title-section h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-deep);
}

.form-title-section p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.form-group label span {
    color: var(--status-rejected);
}

.form-group input, .form-group select, .form-group textarea {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(0,0,0,0.08);
    font-size: 0.92rem;
    background: var(--bg-base);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-medium);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(21, 71, 52, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-submit {
    background: var(--primary-deep);
    color: var(--text-light);
    padding: 0.75rem 2rem;
    border: 1px solid var(--accent-gold);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-medium);
    color: var(--accent-gold);
}

.btn-cancel {
    background: var(--bg-base);
    color: var(--text-primary);
    padding: 0.75rem 2rem;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-cancel:hover {
    background: #fee2e2;
    color: var(--status-rejected);
}

/* Requests Table View */
.table-card-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
    margin-bottom: 2rem;
}

.table-header-bar {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: rgba(14, 48, 39, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header-bar h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-deep);
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

th {
    background: var(--bg-base);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid rgba(0,0,0,0.06);
}

td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 0.9rem;
    color: var(--text-primary);
    vertical-align: middle;
}

tr:hover td {
    background: rgba(197, 168, 128, 0.04);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-pending {
    background-color: rgba(217, 119, 6, 0.1);
    color: var(--status-pending);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.status-approved {
    background-color: rgba(5, 150, 105, 0.1);
    color: var(--status-approved);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.status-preparing {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--status-preparing);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.status-delivered {
    background-color: rgba(13, 148, 136, 0.1);
    color: var(--status-delivered);
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.status-rejected {
    background-color: rgba(220, 38, 38, 0.1);
    color: var(--status-rejected);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* Admin Actions & Layout */
.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-right: 4px solid var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: var(--transition);
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.summary-icon-container {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-icon-container.bg-primary {
    background: rgba(14, 48, 39, 0.1);
    color: var(--primary-deep);
}

.summary-icon-container.bg-gold {
    background: rgba(197, 168, 128, 0.15);
    color: var(--accent-gold-dark);
}

.summary-icon-container.bg-pending {
    background: rgba(217, 119, 6, 0.1);
    color: var(--status-pending);
}

.summary-icon-container.bg-success {
    background: rgba(5, 150, 105, 0.1);
    color: var(--status-approved);
}

.summary-icon-container svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
}

.summary-info h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.summary-info p {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 0.2rem;
}

/* Dropdowns & Forms inside Admin Dashboard */
.btn-action-trigger {
    background: var(--bg-base);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
}

.btn-action-trigger:hover {
    background: var(--primary-deep);
    color: var(--text-light);
}

.admin-actions-cell {
    display: flex;
    gap: 0.5rem;
}

/* Product Management panel */
.product-admin-card {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.04);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
}

.product-admin-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(197, 168, 128, 0.2);
}

.product-admin-thumb {
    width: 150px;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
}

.product-admin-details {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.product-admin-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-deep);
}

.product-admin-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    display: flex;
    gap: 1rem;
}

.product-admin-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
    line-height: 1.5;
}

.product-admin-footer {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 0.8rem;
}

.btn-edit {
    background: #e0f2fe;
    color: #0369a1;
    border: none;
    padding: 0.35rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-edit:hover {
    background: #0284c7;
    color: white;
}

.btn-delete {
    background: #fee2e2;
    color: #b91c1c;
    border: none;
    padding: 0.35rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-delete:hover {
    background: #dc2626;
    color: white;
}

/* Beautiful Notification Toast */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--primary-deep);
    color: var(--text-light);
    border-right: 4px solid var(--accent-gold);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

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

.toast-notification.toast-error {
    background: #991b1b;
    border-right-color: var(--status-rejected);
}

.toast-notification svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-gold);
}

/* Authentication Page Styling */
.login-body {
    background: linear-gradient(135deg, var(--primary-deep) 0%, #051612 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.login-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 3px solid var(--accent-gold);
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    color: var(--text-light);
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    padding: 3rem 2.5rem 1.5rem 2.5rem;
    text-align: center;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(197, 168, 128, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.login-logo svg {
    width: 42px;
    height: 42px;
    fill: var(--primary-deep);
}

.login-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    background: linear-gradient(to left, #ffffff, var(--accent-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    font-size: 0.88rem;
    color: var(--accent-gold);
    font-weight: 500;
}

.login-form {
    padding: 1.5rem 2.5rem 3rem 2.5rem;
}

.login-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.login-form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-gold-light);
}

.login-form-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.login-form-group input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.2);
}

.btn-login-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--primary-deep);
    border: none;
    padding: 0.9rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700;
    transition: var(--transition);
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-login-submit:hover {
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 168, 128, 0.3);
}

.login-alert {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid var(--status-rejected);
    color: #fca5a5;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.login-footer-info {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Footer Section */
footer {
    background: var(--primary-deep);
    color: var(--text-light);
    padding: 2.5rem 2rem;
    border-top: 3px solid var(--accent-gold);
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-logo-section svg {
    width: 32px;
    height: 32px;
    fill: var(--accent-gold);
}

.footer-logo-section p {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--accent-gold-light);
    opacity: 0.8;
}

/* General Layout helpers */
.page-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-title-section h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary-deep);
    position: relative;
    padding-bottom: 0.5rem;
}

.page-title-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.btn-primary-action {
    background: var(--primary-deep);
    color: var(--text-light);
    border: 1px solid var(--accent-gold);
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-action:hover {
    background: var(--primary-medium);
    color: var(--accent-gold);
    transform: translateY(-1px);
}

.btn-primary-action svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
}

/* Empty states */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px dashed rgba(0,0,0,0.15);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    stroke: var(--text-muted);
    stroke-width: 1.5;
    margin-bottom: 1.5rem;
}

.empty-state h4 {
    font-size: 1.2rem;
    color: var(--primary-deep);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
    /* Header & Navigation */
    header {
        padding: 1rem;
    }
    
    .header-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .brand-section {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .brand-info h1 {
        font-size: 1.15rem;
    }
    
    .nav-user {
        width: 100%;
        justify-content: center;
        gap: 0.8rem;
        flex-wrap: wrap;
    }
    
    .user-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .btn-logout {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Hero Banner */
    .hero-banner {
        padding: 3rem 1rem;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Page Titles & Actions */
    .page-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .page-title-section h2 {
        font-size: 1.4rem;
    }
    
    .btn-primary-action {
        width: 100%;
        justify-content: center;
    }
    
    /* Tabs Navigation */
    .tabs-navigation {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    
    /* Category Filter & Search Box */
    .category-filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }
    
    .category-tags {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
        justify-content: flex-start;
    }
    
    .filter-badge {
        flex-shrink: 0;
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .search-box {
        width: 100%;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.2rem;
    }
    
    /* Modal content container */
    .modal-content-container {
        max-height: 95vh;
        width: 95%;
    }
    
    .detail-info-section {
        padding: 1.5rem;
    }
    
    .detail-title {
        font-size: 1.3rem;
    }
    
    /* Request Form Container */
    .request-form-container {
        padding: 1.5rem;
    }
    
    .form-title-section {
        margin-bottom: 1.5rem;
    }
    
    .form-title-section h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    /* Product Admin Card stacking */
    .product-admin-card {
        flex-direction: column;
    }
    
    .product-admin-thumb {
        width: 100%;
        height: 200px;
        min-height: auto;
    }
    
    .product-admin-details {
        padding: 1rem;
    }
    
    .product-admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .product-admin-meta {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .product-admin-footer {
        justify-content: space-between;
        width: 100%;
    }
    
    .btn-edit, .btn-delete {
        flex: 1;
        text-align: center;
        padding: 0.5rem;
    }
    
    /* Tables as Cards (Optional but keeping scrollable with extra styling) */
    th, td {
        padding: 0.8rem 1rem;
        font-size: 0.82rem;
    }
    
    /* Toast Notification placement */
    .toast-notification {
        left: 12px;
        right: 12px;
        bottom: 12px;
        font-size: 0.85rem;
        padding: 0.8rem 1rem;
    }
    
    /* Login Card responsiveness */
    .login-card {
        max-width: 100%;
    }
    
    .login-header {
        padding: 2rem 1.5rem 1rem 1.5rem;
    }
    
    .login-logo {
        width: 64px;
        height: 64px;
    }
    
    .login-logo svg {
        width: 32px;
        height: 32px;
    }
    
    .login-form {
        padding: 1rem 1.5rem 2rem 1.5rem;
    }
}
