/* ==============================
   ZOBOLICIOUS THEME VARIABLES
   ============================== */
:root {
    /* Premium Luxury Colors */
    --primary-color: #2D5F3F;        /* Emerald Green */
    --secondary-color: #8B1538;      /* Deep Wine Red */
    --accent-color: #D4AF37;         /* Champagne Gold */
    --text-dark: #292524;            /* Stone 800 */
    --text-light: #78716c;           /* Stone 500 */
    --bg-light: #fafaf9;             /* Stone 50 */
    --bg-lighter: #f5f5f4;           /* Stone 100 */
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #2D5F3F 0%, #1F4A2F 100%);
    --gradient-accent: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    --gradient-secondary: linear-gradient(135deg, #8B1538 0%, #6B0F2A 100%);
    
    /* Extended color palette */
    --primary-light: #4A8B5C;
    --primary-dark: #1F4A2F;
    --secondary-light: #A91D47;
    --secondary-dark: #6B0F2A;
    --accent-light: #E5C158;
    --accent-dark: #B8941F;
    
    /* Semantic colors */
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(45, 95, 63, 0.1);
    --shadow-md: 0 4px 12px rgba(45, 95, 63, 0.15);
    --shadow-lg: 0 8px 24px rgba(45, 95, 63, 0.2);
    
    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==============================
   BASE LAYOUT & TYPOGRAPHY
   ============================== */

/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

body {
    display: flex;
    flex-direction: column;
    font-size: 16px;
}

/* Header */
header {
    background: var(--white);
    padding: 0.5rem 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100;
}

/* Main content area */
main {
    flex: 1;
    padding: 0;
    background: var(--bg-light);
    min-height: calc(100vh - 200px);
}

/* Footer */
footer {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: auto;
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', Georgia, serif;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 1rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--primary-color);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--primary-color);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--primary-dark);
}

h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--secondary-color);
}

h5, h6 {
    font-size: 1.1rem;
    color: var(--text-dark);
}

p, span, li {
    font-family: 'Nunito Sans', sans-serif;
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.7;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    position: relative;
}

a:hover {
    color: var(--accent-color);
    transform: translateY(-1px);
}

a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition-normal);
}

a:not(.btn):hover::after {
    width: 100%;
}

/* ==============================
   MODERN BUTTON SYSTEM
   ============================== */
.btn, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-xl);
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

/* Primary button with gradient */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

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

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Secondary button */
.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Accent button */
.btn-accent {
    background: var(--gradient-accent);
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
}

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

/* Outline buttons */
.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline-secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Status buttons */
.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-warning {
    background: var(--warning);
    color: var(--text-dark);
}

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

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

.btn-success:hover, .btn-warning:hover, .btn-danger:hover, .btn-info:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Button sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-width: 80px;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    min-width: 160px;
    line-height: 1.5;
}

/* Enhanced button padding for better mobile UX */
.btn-a {
    padding: 1.25rem 2rem !important;
}

/* Button with icon */
.btn-icon {
    padding: 0.75rem;
    min-width: auto;
    aspect-ratio: 1;
}


/* ==============================
   MODERN FORM ELEMENTS
   ============================== */

/* Base input styling */
input, textarea, select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--white);
    border: 2px solid #e1e5e9;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-sizing: border-box;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 95, 63, 0.1);
    transform: translateY(-1px);
}

input:hover, textarea:hover, select:hover {
    border-color: var(--primary-light);
}

/* Textarea specific */
textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* Select specific */
select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
    appearance: none;
}

/* Input groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Input states */
.form-control.is-valid {
    border-color: var(--success);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.form-control.is-valid:focus {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Checkbox and radio styling */
input[type="checkbox"], input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
    margin-bottom: 0;
    accent-color: var(--primary-color);
}

/* File input */
input[type="file"] {
    padding: 0.5rem;
    border-style: dashed;
    background: var(--bg-light);
}

input[type="file"]:hover {
    background: var(--white);
}

/* ==============================
   MODERN CARDS & CONTAINERS
   ============================== */

/* Base card styling */
.card {
    background: var(--white);
    border: 1px solid rgba(45, 95, 63, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

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

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

/* Card variants */
.card-primary {
    border-color: var(--primary-color);
}

.card-secondary {
    border-color: var(--secondary-color);
}

.card-accent {
    border-color: var(--accent-color);
}

.card-primary::before {
    background: var(--gradient-primary);
}

.card-secondary::before {
    background: var(--secondary-color);
}

.card-accent::before {
    background: var(--gradient-accent);
}

/* Card header */
.card-header {
    margin: -2rem -2rem 1.5rem -2rem;
    padding: 1.5rem 2rem;
    background: var(--bg-light);
    border-bottom: 1px solid rgba(45, 95, 63, 0.1);
    font-weight: 600;
    color: var(--primary-color);
}

/* Card body */
.card-body {
    padding: 0;
}

/* Card footer */
.card-footer {
    margin: 1.5rem -2rem -2rem -2rem;
    padding: 1.5rem 2rem;
    background: var(--bg-light);
    border-top: 1px solid rgba(45, 95, 63, 0.1);
}

/* Container utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

/* Scrollbar utilities */
.overflow-x-hidden {
    overflow-x: hidden;
}

.overflow-x-auto {
    overflow-x: auto;
}

.overFlow-x-noBar, .no-scrollbar {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.overFlow-x-noBar::-webkit-scrollbar,
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Image upload wrapper */
.upload-img-wrap {
    background: var(--bg-light);
    border: 2px dashed var(--primary-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.upload-img-wrap:hover {
    background: var(--white);
    border-color: var(--accent-color);
}

/* ==============================
   MODERN ALERTS & MESSAGES
   ============================== */

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: var(--shadow-sm);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert::before {
    content: '';
    width: 4px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-left: 4px solid var(--success);
}

.alert-success::before {
    background: var(--success);
}

.alert-error,
.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid var(--danger);
}

.alert-error::before,
.alert-danger::before {
    background: var(--danger);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-left: 4px solid var(--warning);
}

.alert-warning::before {
    background: var(--warning);
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: #0c5460;
    border-left: 4px solid var(--info);
}

.alert-info::before {
    background: var(--info);
}

.alert-primary {
    background-color: rgba(45, 95, 63, 0.1);
    color: var(--primary-dark);
    border-left: 4px solid var(--primary-color);
}

.alert-primary::before {
    background: var(--primary-color);
}

/* Alert with dismiss button */
.alert-dismissible {
    padding-right: 3rem;
}

.alert-dismiss {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.alert-dismiss:hover {
    opacity: 1;
}

/* ==============================
   MODERN MODALS
   ============================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: all var(--transition-normal);
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal {
    background: var(--white);
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: scale(0.9);
    transition: all var(--transition-normal);
    overflow-y: auto;
}

.modal-overlay.show .modal {
    transform: scale(1);
}

.modal-header {
    margin: -2.5rem -2.5rem 2rem -2.5rem;
    padding: 1.5rem 2.5rem;
    background: var(--bg-light);
    border-bottom: 1px solid rgba(45, 95, 63, 0.1);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal h2, .modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.modal-body {
    padding: 0;
}

.modal-footer {
    margin: 2rem -2.5rem -2.5rem -2.5rem;
    padding: 1.5rem 2.5rem;
    background: var(--bg-light);
    border-top: 1px solid rgba(45, 95, 63, 0.1);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--danger);
    color: var(--white);
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 1001;
}

.uploaded-img-thumbnail-btn:hover {
    background: var(--danger);
    transform: scale(1.1);
}

/* ==============================
   UTILITY CLASSES
   ============================== */

/* Spacing utilities */
.m-0 { margin: 0; }
.m-1 { margin: 0.5rem; }
.m-2 { margin: 1rem; }
.m-3 { margin: 1.5rem; }
.m-4 { margin: 2rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-info { color: var(--info); }
.text-dark { color: var(--text-dark); }
.text-light { color: var(--text-light); }

/* Background utilities */
.bg-primary { background: var(--primary-color); }
.bg-secondary { background: var(--secondary-color); }
.bg-accent { background: var(--accent-color); }
.bg-light { background: var(--bg-light); }
.bg-white { background: var(--white); }
.bg-gradient-primary { background: var(--gradient-primary); }
.bg-gradient-accent { background: var(--gradient-accent); }

/* Display utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Flex utilities */
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

/* Border utilities */
.rounded { border-radius: var(--radius-md); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

/* Shadow utilities */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

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

@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .btn, button {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .modal {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .thumbnails {
        gap: 0.5rem;
    }
    
    .uploadBtn-wrapper {
        height: 80px;
        width: 80px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.5rem 1rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .btn, button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        min-width: 100px;
    }
}