﻿/* ============================================
   CENTRALIZED LOGO CONTROL
   ============================================
   
   🎯 QUICK ADJUSTMENT GUIDE:
   
   To change logo size across the ENTIRE application,
   simply modify the values in the "MASTER CONTROLS" section below.
   
   All other styles will automatically adjust based on these values.
   
   ============================================ */

/* ============================================
   ⚙️ MASTER CONTROLS - ADJUST HERE ONLY!
   ============================================ */

:root {
    /* 🎨 Main Logo Dimensions */
    --logo-height-desktop: 150px;      /* Desktop screens (>1024px) */
    --logo-height-tablet: 90px;       /* Tablets (768px - 1024px) */
    --logo-height-mobile: 70px;       /* Mobile (480px - 768px) */
    --logo-height-small: 70px;        /* Small mobile (360px - 480px) */
    --logo-height-tiny: 70px;
    
    /* 📏 Padding Around Logo */
    --logo-padding-desktop: 5px 10px; /* Top/Bottom Left/Right */
    --logo-padding-tablet: 4px 8px;
    --logo-padding-mobile: 3px 6px;
    --logo-padding-small: 3px 5px;
    --logo-padding-tiny: 2px 4px;
    
    /* 📐 Header Padding */
    --header-padding-desktop: 18px 0;
    --header-padding-scrolled: 14px 0;
    --header-padding-mobile: 14px 0;
    
    /* 🏢 Admin Sidebar Logo */
    --admin-sidebar-logo-height: 65px;
    --admin-sidebar-logo-padding: 8px 12px;
    --admin-sidebar-container-padding: 20px 15px;
    
    /* 🔐 Admin Login Logo */
    --admin-login-logo-width-desktop: 280px;
    --admin-login-logo-width-tablet: 220px;
    --admin-login-logo-width-mobile: 180px;
    --admin-login-logo-padding: 10px 15px;
}

/* ============================================
   📱 USER-FACING LAYOUTS (Main Site)
   ============================================ */

/* Main Header */
#header {
    padding: var(--header-padding-desktop) !important;
}

#header.header-scrolled {
    padding: var(--header-padding-scrolled) !important;
}

#header #logo {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

#header #logo a {
    display: block;
    line-height: 0;
}

#header #logo img {
    height: var(--logo-height-desktop) !important;
    width: auto !important;
    max-width: 100%;
    padding: var(--logo-padding-desktop) !important;
    margin: 0 !important;
    object-fit: contain !important;
    transition: all 0.3s ease;
}

/* Tablet View (768px - 1024px) */
@media (max-width: 1024px) {
    #header #logo img {
        height: var(--logo-height-tablet) !important;
        padding: var(--logo-padding-tablet) !important;
    }
}

/* Mobile View (480px - 768px) */
@media (max-width: 768px) {
    #header #logo img {
        height: var(--logo-height-mobile) !important;
        padding: var(--logo-padding-mobile) !important;
    }
}

/* Small Mobile (360px - 480px) */
@media (max-width: 480px) {
    #header {
        padding: var(--header-padding-mobile) !important;
    }
    
    #header #logo img {
        height: var(--logo-height-small) !important;
        padding: var(--logo-padding-small) !important;
    }
}

/* Tiny Screens (<360px) */
@media (max-width: 360px) {
    #header #logo img {
        height: var(--logo-height-tiny) !important;
        padding: var(--logo-padding-tiny) !important;
    }
}

/* ============================================
   🏢 ADMIN LAYOUT (Sidebar)
   ============================================ */

.app-brand.demo {
    padding: var(--admin-sidebar-container-padding) !important;
}

.app-brand-logo.demo img {
    height: var(--admin-sidebar-logo-height) !important;
    width: auto !important;
    padding: var(--admin-sidebar-logo-padding) !important;
    object-fit: contain !important;
}

/* ============================================
   🔐 ADMIN LOGIN PAGE
   ============================================ */

.admin-logo-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px 0 !important;
}

.admin-logo-section a {
    display: inline-block;
}

.admin-logo-section img {
    max-width: var(--admin-login-logo-width-desktop) !important;
    height: auto !important;
    padding: var(--admin-login-logo-padding) !important;
    object-fit: contain !important;
}

@media (max-width: 768px) {
    .admin-logo-section img {
        max-width: var(--admin-login-logo-width-tablet) !important;
        padding: 8px 12px !important;
    }
}

@media (max-width: 480px) {
    .admin-logo-section img {
        max-width: var(--admin-login-logo-width-mobile) !important;
        padding: 6px 10px !important;
    }
}

/* ============================================
   🔧 OVERRIDE ANY CONFLICTING STYLES
   ============================================ */

/* Override SCSS compiled styles */
#header #logo img[src$=".png"],
#header #logo img[src$=".jpg"],
#header #logo img[src$=".svg"] {
    max-height: none !important; /* Remove any max-height restrictions */
}

/* Ensure logo stays within header bounds */
#logo img {
    display: block;
}

/* ============================================
   📝 USAGE NOTES
   ============================================
   
   ✅ TO CHANGE LOGO SIZE:
   1. Scroll to the "MASTER CONTROLS" section at the top
   2. Adjust the --logo-height-* variables
   3. Save the file
   4. Hard refresh your browser (Ctrl + Shift + R)
   
   ✅ RECOMMENDED SIZES FOR HORIZONTAL LOGOS:
   - Desktop: 60px - 80px
   - Tablet: 50px - 70px
   - Mobile: 40px - 60px
   
   ✅ RECOMMENDED SIZES FOR SQUARE LOGOS:
   - Desktop: 45px - 60px
   - Tablet: 40px - 55px
   - Mobile: 35px - 50px
   
   ⚠️ IMPORTANT:
   - Width is automatically calculated (aspect ratio preserved)
   - If logo looks too small/large, adjust the height values above
   - Padding adds breathing room around the logo
   - All layouts update automatically from these variables
   
   ============================================ */
