/* ==========================================
   GOOGLE FONTS IMPORT
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');


:root {
    /* Primary - Professional Blue */
    --color-primary: #2e6bb1;           /* Bephoto blue */
    --color-primary-light: #4a8dd6;
    --color-primary-dark: #1a4d8a;

    /* Secondary - Slate Blues */
    --color-secondary: #1E3A5F;
    --color-secondary-light: #2E4A6F;
    --color-secondary-dark: #0E2A4F;

    /* Accent - Bephoto brand colors (from logo) */
    --color-accent: #E91E63;            /* Pink from logo */
    --color-accent-secondary: #FF9800;  /* Orange from logo */
    --color-accent-green: #4CAF50;      /* Green from logo */

    /* UI Colors - Professional grays */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;
    --color-info: #3B82F6;

    /* Neutrals - Grays */
    --color-white: #FFFFFF;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;

    /* 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-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

/* ==========================================
   GLOBAL STYLES
   ========================================== */

html {
    font-size: 16px !important;
}

body {
    font-family: var(--font-primary);
    color: var(--color-gray-800);
    background: linear-gradient(180deg, #2e6bb1 0%, #4a8dd6 100%);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.6;
    font-weight: 400;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-gray-900);
    letter-spacing: -0.025em;
    margin-top: 0;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Main content headings */
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4 {
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: .5rem;
}

.main-content h1,
.main-content h2 {
    margin-bottom: 1.5rem;
}


/* ==========================================
   NAVIGATION
   ========================================== */

.navbar-default {
    background: var(--color-white) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: var(--shadow-md);
    margin: 0 0 0 0 !important;
    padding: 0 !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 60px;
}

.navbar-brand {
    font-family: var(--font-primary);
    font-size: 1.5rem !important;
    font-weight: 700;
    padding: 10px 15px !important;
    color: var(--color-primary) !important;
    display: flex !important;
    align-items: center;
    height: 60px;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    margin-right: 0.75rem;
    display: inline-block !important;
    vertical-align: middle;
}

.navbar-nav > li > a {
    color: var(--color-gray-700) !important;
    font-weight: 500;
    padding: 20px 15px !important;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 20px;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
    background: var(--color-gray-50) !important;
    color: var(--color-accent) !important;
}

.navbar-nav > li.active > a {
    background: var(--color-primary) !important;
    color: white !important;
    position: relative;
}

.navbar-nav > li.active > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-accent);
}

/* Dropdown Menu */
.dropdown-menu {
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    margin-top: 0;
}

.dropdown-menu > li > a {
    padding: 0.875rem 1.5rem;
    color: var(--color-gray-700);
    transition: all var(--transition-fast);
    font-weight: 500;
    font-size: 0.875rem;
}

.dropdown-menu > li > a:hover {
    background: var(--color-gray-50);
    color: var(--color-accent);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border: none;
    transition: all var(--transition-base);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--color-primary-light);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-success {
    background: var(--color-success);
    color: white;
}

.btn-success:hover,
.btn-success:focus {
    background: #059669;
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-warning {
    background: var(--color-warning);
    color: white;
}

.btn-warning:hover,
.btn-warning:focus {
    background: #D97706;
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-danger {
    background: var(--color-danger);
    color: white;
}

.btn-danger:hover,
.btn-danger:focus {
    background: #DC2626;
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-default {
    background: white;
    color: var(--color-gray-700);
    border: 2px solid var(--color-gray-300);
}

.btn-default:hover,
.btn-default:focus {
    background: var(--color-gray-50);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.0625rem;
}

/* ==========================================
   CONTENT AREA
   ========================================== */

.main-content {
    background: white;
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    margin-top: 0;
}

/* Fix for tabs styling */
.nav-tabs {
    border-bottom: 2px solid var(--color-gray-200);
    margin-bottom: 1.5rem;
}

.nav-tabs > li > a {
    color: var(--color-gray-600);
    font-weight: 500;
    padding: 0.875rem 1.5rem;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    font-size: 1.0625rem;
}

.nav-tabs > li > a:hover {
    background: transparent;
    border-bottom-color: var(--color-gray-300);
    color: var(--color-primary);
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    color: var(--color-primary);
    background: transparent;
    border: none;
    border-bottom: 3px solid var(--color-primary);
}

.tab-content {
    background: transparent;
    border: none;
    padding: 0;
}

/* ==========================================
   PANELS & CARDS
   ========================================== */

.panel {
    border: 1px solid var(--color-gray-200) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-md) !important;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all var(--transition-base);
    background: white;
}

.panel:hover {
    box-shadow: var(--shadow-lg) !important;
}

.panel-default > .panel-heading {
    background: var(--color-gray-50) !important;
    border-bottom: 1px solid var(--color-gray-200) !important;
    color: var(--color-gray-900);
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.panel-heading {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

.panel-body {
    padding: 1.5rem;
}

.panel-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-gray-900);
}

.main-content .panel-title h3{
    margin-bottom:5px;
}

.panel-body {
    font-size: 1rem;
}


.panel-success > .panel-heading, .panel.selected > .panel-heading {
    background: var(--color-success) !important;
    color: white !important;
    border: none !important;
}

.panel.selected > .panel-heading h3 {
    color: white !important;
}


.panel-secondary > .panel-heading {
    background: var(--color-gray-200) !important;
    color: var(--color-gray-600) !important;
    border: none !important;
}

.panel-warning > .panel-heading {
    background: var(--color-warning) !important;
    color: white !important;
    border: none !important;
}

.panel-danger > .panel-heading {
    background: var(--color-danger) !important;
    color: white !important;
    border: none !important;
}

/* ==========================================
   UPLOAD INTERFACE
   ========================================== */

.upload-zone {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.upload-zone::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.upload-zone-content {
    position: relative;
    z-index: 1;
}

#bigUploadButton {
    background: white;
    color: var(--color-primary);
    border: none;
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-base);
    min-width: 280px;
}

#bigUploadButton:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl);
    background: var(--color-accent);
    color: white;
}

.uploadMenu {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.uploadMenu:empty {
    display: none !important;
}

.uploadMenu .collapse:not(.in) {
    display: none;
}

/* Hide uploadMenu if it only contains empty or collapsed content */
.uploadMenu:not(:has(.in)):not(:has(button:not(.hidden))) {
    display: none !important;
}

/* Additional fix for empty uploadMenu */
#fineuploader:empty,
#fineuploader .collapse.navbar-collapse:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================
   ALERTS
   ========================================== */

.alert {
    border: none;
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid;
    font-size: 1rem;
    line-height: 1.6;
}

.alert-success {
    background: #ECFDF5;
    border-left-color: var(--color-success);
    color: #065F46;
}

.alert-warning {
    background: #FFFBEB;
    border-left-color: var(--color-warning);
    color: #92400E;
}

.alert-danger {
    background: #FEF2F2;
    border-left-color: var(--color-danger);
    color: #991B1B;
}

.alert-info {
    background: #EFF6FF;
    border-left-color: var(--color-info);
    color: #1E40AF;
}

/* ==========================================
   TABLES
   ========================================== */

.table {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 0;
}

.table > thead > tr > th {
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    border: none !important;
    border-top: none !important;
    padding: 1rem 1rem;
}

.table > tbody > tr > td {
    padding: 1rem 1rem;
    border-color: var(--color-gray-100) !important;
    vertical-align: middle;
    font-size: 1rem;
    line-height: 1.5;
}

.table > tbody > tr > td a {
    font-size: 1rem;
}

.table-condensed > tbody > tr > td,
.table-condensed > thead > tr > th {
    padding: 0.875rem 1rem;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background: var(--color-gray-50);
}

.table-hover > tbody > tr:hover {
    background: #FEF3E7;
    cursor: pointer;
}

/* ==========================================
   MODALS
   ========================================== */

.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
}

.modal-header {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1.5rem;
}

.modal-body {
    font-size: 1rem;
}

.modal-header .close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    background: var(--color-gray-50);
    border: none;
    padding: 1.25rem 2rem;
}

/* ==========================================
   FORMS
   ========================================== */

.form-control {
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    /*padding: 0.75rem 1rem;*/
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(10, 25, 41, 0.1);
    outline: none;
}

/* Remove browser autocomplete icons and styling */
.form-control::-webkit-contacts-auto-fill-button,
.form-control::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    height: 0;
    width: 0;
    margin: 0;
}

/* Chrome/Safari autofill background override */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    -webkit-text-fill-color: var(--color-gray-800) !important;
    border: 2px solid var(--color-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Form labels */
label {
    font-weight: 600;
    color: var(--color-gray-700);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

/* Form group styling */
.form-group {
    position: relative;
    margin-bottom: 1rem;
}

/* Hide datalist dropdowns and autocomplete suggestions */
datalist {
    display: none !important;
}

/* Hide any popover/tooltip that might interfere */
.popover,
.tooltip {
    display: none !important;
}

/* Prevent input decorations from browser extensions */
input[type="email"]::-webkit-calendar-picker-indicator,
input[type="password"]::-webkit-calendar-picker-indicator {
    display: none !important;
}

/* Remove any extra spacing that might show icons */
input[type="email"],
input[type="password"] {
    background-image: none !important;
    background-position: 0 0 !important;
    padding-right: 1rem !important;
}

/* Login page - centered navbar */
.navbar-login .navbar-header {
    float: none !important;
    text-align: center !important;
}

.navbar-login .navbar-brand {
    display: inline-block !important;
    float: none !important;
}

/* Livraison button in navbar */
#livraisonButton {
    display: inline-block !important;
    margin-top: 10px !important;
    margin-right: 15px !important;
}

#livraisonButton.hidden {
    display: none !important;
}

/* Livraison button in order list */
#livraisonButtonMain {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#livraisonButtonMain:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ==========================================
   FOOTER
   ========================================== */

.main-footer {
    background: var(--color-primary);
    color: var(--color-gray-300);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    font-size: 0.9375rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section h5 {
    color: white;
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--color-gray-300);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: var(--color-gray-400);
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

/* ==========================================
   BADGES
   ========================================== */

.badge {
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-accent {
    background: var(--color-accent);
}

.badge-success {
    background: var(--color-success);
}

.badge-warning {
    background: var(--color-warning);
}

/* ==========================================
   BACKGROUND
   ========================================== */

.backgroundImage {
    opacity: 0.15;
    filter: blur(5px);
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.text-primary {
    color: var(--color-primary) !important;
}

.text-accent {
    color: var(--color-accent) !important;
}

.bg-primary {
    background: var(--color-primary) !important;
}

.shadow-soft {
    box-shadow: var(--shadow-md);
}

.shadow-hard {
    box-shadow: var(--shadow-xl);
}

/* ==========================================
   PAGINATION
   ========================================== */

.pagination {
    display: inline-flex;
    padding-left: 0;
    margin: 20px 0;
    border-radius: var(--radius-md);
}

.pagination > li {
    display: inline;
}

.pagination > li > a,
.pagination > li > span {
    position: relative;
    float: left;
    padding: 0.625rem 1rem;
    margin-left: -1px;
    line-height: 1.5;
    color: var(--color-primary);
    text-decoration: none;
    background-color: white;
    border: 1px solid var(--color-gray-300);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pagination > li:first-child > a,
.pagination > li:first-child > span {
    margin-left: 0;
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
}

.pagination > li:last-child > a,
.pagination > li:last-child > span {
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

.pagination > li > a:hover,
.pagination > li > a:focus {
    z-index: 2;
    color: var(--color-primary-dark);
    background-color: var(--color-gray-50);
    border-color: var(--color-gray-300);
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
    z-index: 3;
    color: white;
    cursor: default;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.pagination > .disabled > span,
.pagination > .disabled > span:hover,
.pagination > .disabled > span:focus,
.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > a:focus {
    color: var(--color-gray-400);
    cursor: not-allowed;
    background-color: white;
    border-color: var(--color-gray-300);
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.glyphicon-spin {
    animation: spin 1s infinite linear;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .navbar-brand {
        font-size: 1.25rem !important;
    }

    .navbar-brand img {
        height: 32px;
    }

    .navbar-nav > li > a {
        padding: 15px 10px !important;
        font-size: 0.8125rem;
    }

    .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.8125rem;
    }

    .main-footer {
        padding: 2rem 0 1rem;
    }

    .upload-zone {
        padding: 2rem 1rem;
    }

    .table > tbody > tr > td,
    .table > thead > tr > th {
        font-size: 0.9375rem;
        padding: 0.75rem 0.75rem;
    }

    .panel-title {
        font-size: 1rem;
    }
}

/* ==========================================
   DARK MODE ELEMENTS
   ========================================== */

.dark-card {
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.dark-card h3,
.dark-card h4,
.dark-card h5 {
    color: white;
}
