/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Gilroy:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary-color: #6c7d36; /* Indigo 600 */
    --primary-hover: #5a6b2a; /* Indigo 700 */
    --secondary-color: #ec4899; /* Pink 500 */
    --background-color: #f3f4f6; /* Gray 100 */
    --surface-color: #ffffff;
    --text-main: rgb(11, 11, 11); /* Gray 800 */
    --text-muted: #6b7280; /* Gray 500 */
    --border-color: #6c7d36; /* Gray 200 */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6c7d36 0%, #cde08b 100%);
    --gradient-bg: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

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

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
* {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.text-primary-custom{
    color:#6c7d36;
}

.text-primary-x{
    color:#242424;
}

body {
    font-family: 'Gilroy', sans-serif;
    background: url('../flat_seamless_arabic_geometric_ornament_outline_pattern.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    position: relative; /* Needed for pseudo-element positioning */
    overflow: auto; /* Ensure blur doesn't bleed */
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit; /* Inherit the background image */
    background-size: cover;
    background-position: center;
    filter: blur(5px); /* Adjust blur strength as needed */
    z-index: -1; /* Place behind content */
}

/* Utilities */
.glass-panel {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-glass);
    border-radius: var(--radius-md);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary-custom {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: white;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-secondary-custom {
    background: var(--surface-color);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-secondary-custom:hover {
    background: var(--background-color);
    border-color: var(--text-muted);
}

/* Layouts */
.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: var(--spacing-md);
}

/* Login Page Specifics */
.login-card {
    width: 100%;
    max-width: 400px;
    padding: var(--spacing-xl);
    text-align: center;
}

.login-logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    text-align: left;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: rgba(255, 255, 255, 0.9);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Dashboard Specifics */
.navbar-custom {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
}

.content-card1 {
    background:#d4ff00;
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    height: 100%;
}

.content-card {
    background:#d4ff00;;
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    height: 100%;
}


.preview-box {
    background: var(--background-color);
    border-radius: var(--radius-sm);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: var(--text-muted);
    font-size: 4rem;
}

.action-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

#productList {
    overflow-y: auto;
}

.list-item-custom {
    border: 1px solid white;
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    background: rgba(255, 255, 255, 0.479);
    text-decoration: none;
    color: inherit;
    display: block;
}

.list-item-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: white;
    background: #fafafa;
}

.list-item-custom.active {
    background: var(--primary-color);
    color: white;
    border-color: white;
}

.list-item-custom.active .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Responsive Media Queries */
@media (min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .main-container {
        padding: var(--spacing-sm);
    }
    
    .dashboard-grid {
        gap: var(--spacing-md);
    }

    .content-card {
        padding: var(--spacing-md);
    }

    #productList {
        max-height: 40vh !important; /* Limit height on mobile to show details below */
    }

    .preview-box {
        height: 200px;
        font-size: 3rem;
    }

    .login-logo {
        font-size: 2rem;
    }
}