/* Import Cooper Black - matches ASAS logo font (MUST be at top) */
@import url('https://fonts.cdnfonts.com/css/cooper-black');

/**
 * Rose Theme - Depot Management System
 * A soft pink/rose aesthetic with burgundy accents
 * Compatible with Tabler framework
 *
 * This theme features:
 * - Light pink body background
 * - White cards with subtle pink borders
 * - Dark burgundy text for readability
 * - Light pink navbar with burgundy navigation text
 * - Colorful badges for visual distinction
 */

/* ============================================
   Rose Color Palette
   ============================================ */
:root {
    /* Rose Scale - Tailwind-inspired */
    --rose-50: #FFF1F2;
    --rose-100: #FFE4E6;
    --rose-200: #FECDD3;
    --rose-300: #FDA4AF;
    --rose-400: #FB7185;
    --rose-500: #F43F5E;
    --rose-600: #E11D48;
    --rose-700: #BE123C;
    --rose-800: #9F1239;
    --rose-900: #881337;

    /* Badge Colors */
    --rose-badge-green: #10B981;
    --rose-badge-yellow: #F59E0B;
    --rose-badge-blue: #3B82F6;
    --rose-badge-pink: #EC4899;
}

/* ============================================
   Theme Application
   Triggered by .theme-rose class on body/html
   or data-bs-theme-preset="rose" attribute
   ============================================ */
.theme-rose,
[data-bs-theme-preset="rose"] {
    /* Background Colors */
    --tblr-body-bg: #FDF2F8;
    --tblr-tertiary-bg: #FFF1F2;
    --tblr-secondary-bg: #FFE4E6;

    /* Text Colors */
    --tblr-body-color: #881337;
    --tblr-heading-color: #9F1239;
    --tblr-emphasis-color: #BE123C;
    --tblr-secondary-color: rgba(136, 19, 55, 0.75);
    --tblr-tertiary-color: rgba(136, 19, 55, 0.5);

    /* Card Styling */
    --tblr-card-bg: #FFFFFF;
    --tblr-card-cap-bg: #FFF1F2;
    --tblr-card-border-color: #FECDD3;

    /* Border Colors */
    --tblr-border-color: #FECDD3;
    --tblr-border-color-translucent: rgba(190, 18, 60, 0.1);

    /* Primary Color */
    --tblr-primary: #BE123C;
    --tblr-primary-rgb: 190, 18, 60;
    --tblr-primary-lt: rgba(190, 18, 60, 0.1);

    /* Link Colors */
    --tblr-link-color: #BE123C;
    --tblr-link-hover-color: #9F1239;

    /* Shadows - Softer rose-tinted */
    --tblr-box-shadow: 0 2px 8px rgba(136, 19, 55, 0.08);
    --tblr-box-shadow-sm: 0 1px 3px rgba(136, 19, 55, 0.05);
    --tblr-box-shadow-lg: 0 4px 16px rgba(136, 19, 55, 0.12);

    /* Form Elements */
    --tblr-form-valid-color: #10B981;
    --tblr-form-invalid-color: #E11D48;
}

/* ============================================
   Body Styling
   ============================================ */
.theme-rose body,
[data-bs-theme-preset="rose"] body,
body.theme-rose {
    background-color: #FDF2F8 !important;
    color: #881337;
}

/* ============================================
   Navbar - Light Pink Style (User Preference)
   ============================================ */
.theme-rose .navbar,
[data-bs-theme-preset="rose"] .navbar {
    background: linear-gradient(135deg, #FFE4E6 0%, #FECDD3 100%) !important;
    border-bottom: 1px solid #FECDD3;
    box-shadow: 0 2px 4px rgba(136, 19, 55, 0.06);
}

/* Navbar brand */
.theme-rose .navbar .navbar-brand,
.theme-rose .navbar .navbar-brand a,
[data-bs-theme-preset="rose"] .navbar .navbar-brand,
[data-bs-theme-preset="rose"] .navbar .navbar-brand a {
    color: #881337 !important;
}

/* Navbar links */
.theme-rose .navbar .nav-link,
[data-bs-theme-preset="rose"] .navbar .nav-link {
    color: #881337 !important;
}

.theme-rose .navbar .nav-link:hover,
.theme-rose .navbar .nav-link:focus,
[data-bs-theme-preset="rose"] .navbar .nav-link:hover,
[data-bs-theme-preset="rose"] .navbar .nav-link:focus {
    color: #BE123C !important;
    background-color: rgba(190, 18, 60, 0.1);
}

/* Navbar dropdown menus */
.theme-rose .navbar .dropdown-menu,
[data-bs-theme-preset="rose"] .navbar .dropdown-menu {
    background: #FFFFFF;
    border: 1px solid #FECDD3;
    box-shadow: 0 4px 12px rgba(136, 19, 55, 0.1);
}

.theme-rose .navbar .dropdown-item,
[data-bs-theme-preset="rose"] .navbar .dropdown-item {
    color: #881337;
}

.theme-rose .navbar .dropdown-item:hover,
[data-bs-theme-preset="rose"] .navbar .dropdown-item:hover {
    background-color: #FFF1F2;
    color: #BE123C;
}

.theme-rose .navbar .dropdown-header,
[data-bs-theme-preset="rose"] .navbar .dropdown-header {
    color: #9F1239;
    font-weight: 600;
}

/* Navbar toggler */
.theme-rose .navbar .navbar-toggler-icon,
[data-bs-theme-preset="rose"] .navbar .navbar-toggler-icon {
    filter: invert(15%) sepia(60%) saturate(3000%) hue-rotate(330deg) brightness(70%);
}

/* Avatar text in navbar */
.theme-rose .navbar .text-reset,
.theme-rose .navbar .text-secondary,
[data-bs-theme-preset="rose"] .navbar .text-reset,
[data-bs-theme-preset="rose"] .navbar .text-secondary {
    color: #881337 !important;
}

/* ============================================
   Secondary Navbar (Navigation Menu)
   ============================================ */
.theme-rose .navbar-expand-md .navbar,
.theme-rose header.navbar-expand-md .navbar,
[data-bs-theme-preset="rose"] .navbar-expand-md .navbar,
[data-bs-theme-preset="rose"] header.navbar-expand-md .navbar {
    background: #FFF1F2 !important;
    border-bottom: 1px solid #FECDD3;
}

/* ============================================
   Card Styling
   ============================================ */
.theme-rose .card,
[data-bs-theme-preset="rose"] .card {
    background: #FFFFFF;
    border: 1px solid #FECDD3;
    box-shadow: 0 2px 8px rgba(136, 19, 55, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.theme-rose .card:hover,
[data-bs-theme-preset="rose"] .card:hover {
    box-shadow: 0 4px 12px rgba(136, 19, 55, 0.1);
}

.theme-rose .card-header,
[data-bs-theme-preset="rose"] .card-header {
    background: #FFF1F2;
    border-bottom: 1px solid #FECDD3;
    color: #9F1239;
}

.theme-rose .card-title,
[data-bs-theme-preset="rose"] .card-title {
    color: #9F1239;
}

.theme-rose .card-footer,
[data-bs-theme-preset="rose"] .card-footer {
    background: #FFF1F2;
    border-top: 1px solid #FECDD3;
}

/* ============================================
   Button Styling
   ============================================ */
.theme-rose .btn-primary,
[data-bs-theme-preset="rose"] .btn-primary {
    --tblr-btn-bg: #BE123C;
    --tblr-btn-border-color: #BE123C;
    --tblr-btn-hover-bg: #9F1239;
    --tblr-btn-hover-border-color: #9F1239;
    --tblr-btn-active-bg: #881337;
    --tblr-btn-active-border-color: #881337;
    --tblr-btn-color: #FFFFFF;
    background-color: #BE123C;
    border-color: #BE123C;
}

.theme-rose .btn-primary:hover,
[data-bs-theme-preset="rose"] .btn-primary:hover {
    background-color: #9F1239;
    border-color: #9F1239;
}

.theme-rose .btn-outline-primary,
[data-bs-theme-preset="rose"] .btn-outline-primary {
    --tblr-btn-color: #BE123C;
    --tblr-btn-border-color: #BE123C;
    --tblr-btn-hover-bg: #BE123C;
    --tblr-btn-hover-border-color: #BE123C;
    color: #BE123C;
    border-color: #BE123C;
}

.theme-rose .btn-outline-primary:hover,
[data-bs-theme-preset="rose"] .btn-outline-primary:hover {
    background-color: #BE123C;
    color: #FFFFFF;
}

/* Secondary button */
.theme-rose .btn-secondary,
[data-bs-theme-preset="rose"] .btn-secondary {
    --tblr-btn-bg: #FDA4AF;
    --tblr-btn-border-color: #FDA4AF;
    --tblr-btn-color: #881337;
}

/* ============================================
   Badge Styling - Colorful for Visual Distinction
   ============================================ */
.theme-rose .badge.bg-primary,
[data-bs-theme-preset="rose"] .badge.bg-primary {
    background-color: #BE123C !important;
}

.theme-rose .badge.bg-green,
.theme-rose .badge.bg-success,
[data-bs-theme-preset="rose"] .badge.bg-green,
[data-bs-theme-preset="rose"] .badge.bg-success {
    background-color: #10B981 !important;
    color: #FFFFFF !important;
}

.theme-rose .badge.bg-yellow,
.theme-rose .badge.bg-warning,
[data-bs-theme-preset="rose"] .badge.bg-yellow,
[data-bs-theme-preset="rose"] .badge.bg-warning {
    background-color: #F59E0B !important;
    color: #FFFFFF !important;
}

.theme-rose .badge.bg-blue,
.theme-rose .badge.bg-info,
[data-bs-theme-preset="rose"] .badge.bg-blue,
[data-bs-theme-preset="rose"] .badge.bg-info {
    background-color: #3B82F6 !important;
    color: #FFFFFF !important;
}

.theme-rose .badge.bg-pink,
[data-bs-theme-preset="rose"] .badge.bg-pink {
    background-color: #EC4899 !important;
    color: #FFFFFF !important;
}

.theme-rose .badge.bg-danger,
.theme-rose .badge.bg-red,
[data-bs-theme-preset="rose"] .badge.bg-danger,
[data-bs-theme-preset="rose"] .badge.bg-red {
    background-color: #E11D48 !important;
    color: #FFFFFF !important;
}

/* Light badge variants */
.theme-rose .badge.bg-success-lt,
[data-bs-theme-preset="rose"] .badge.bg-success-lt {
    background-color: #D1FAE5 !important;
    color: #065F46 !important;
}

.theme-rose .badge.bg-warning-lt,
[data-bs-theme-preset="rose"] .badge.bg-warning-lt {
    background-color: #FEF3C7 !important;
    color: #92400E !important;
}

.theme-rose .badge.bg-danger-lt,
[data-bs-theme-preset="rose"] .badge.bg-danger-lt {
    background-color: #FEE2E2 !important;
    color: #991B1B !important;
}

.theme-rose .badge.bg-info-lt,
[data-bs-theme-preset="rose"] .badge.bg-info-lt {
    background-color: #DBEAFE !important;
    color: #1E40AF !important;
}

.theme-rose .badge.bg-secondary-lt,
[data-bs-theme-preset="rose"] .badge.bg-secondary-lt {
    background-color: #FFE4E6 !important;
    color: #881337 !important;
}

/* ============================================
   Table Styling
   ============================================ */
.theme-rose .table,
[data-bs-theme-preset="rose"] .table {
    --tblr-table-bg: transparent;
    --tblr-table-striped-bg: rgba(255, 228, 230, 0.5);
    --tblr-table-hover-bg: rgba(254, 205, 211, 0.5);
    --tblr-table-border-color: #FECDD3;
}

.theme-rose .table thead th,
[data-bs-theme-preset="rose"] .table thead th {
    background-color: #FFF1F2;
    color: #9F1239;
    border-bottom: 2px solid #FECDD3;
    font-weight: 600;
}

.theme-rose .table tbody tr,
[data-bs-theme-preset="rose"] .table tbody tr {
    border-bottom: 1px solid #FECDD3;
}

.theme-rose .table tbody tr:hover,
[data-bs-theme-preset="rose"] .table tbody tr:hover {
    background-color: rgba(254, 205, 211, 0.3);
}

/* ============================================
   Alert Styling
   ============================================ */
.theme-rose .alert-primary,
[data-bs-theme-preset="rose"] .alert-primary {
    --tblr-alert-bg: #FFE4E6;
    --tblr-alert-border-color: #FECDD3;
    --tblr-alert-color: #881337;
    background-color: #FFE4E6;
    border-color: #FECDD3;
    color: #881337;
}

.theme-rose .alert-info,
[data-bs-theme-preset="rose"] .alert-info {
    --tblr-alert-bg: #FFF1F2;
    --tblr-alert-border-color: #FECDD3;
    --tblr-alert-color: #881337;
    background-color: #FFF1F2;
    border-color: #FECDD3;
    color: #881337;
}

/* ============================================
   Form Controls
   ============================================ */
.theme-rose .form-control,
.theme-rose .form-select,
[data-bs-theme-preset="rose"] .form-control,
[data-bs-theme-preset="rose"] .form-select {
    border-color: #FECDD3;
    background-color: #FFFFFF;
    color: #881337;
}

.theme-rose .form-control:focus,
.theme-rose .form-select:focus,
[data-bs-theme-preset="rose"] .form-control:focus,
[data-bs-theme-preset="rose"] .form-select:focus {
    border-color: #FDA4AF;
    box-shadow: 0 0 0 0.25rem rgba(190, 18, 60, 0.15);
}

.theme-rose .form-control::placeholder,
[data-bs-theme-preset="rose"] .form-control::placeholder {
    color: rgba(136, 19, 55, 0.5);
}

.theme-rose .form-label,
[data-bs-theme-preset="rose"] .form-label {
    color: #9F1239;
    font-weight: 500;
}

/* ============================================
   Pagination
   ============================================ */
.theme-rose .page-link,
[data-bs-theme-preset="rose"] .page-link {
    color: #BE123C;
    background-color: #FFFFFF;
    border-color: #FECDD3;
}

.theme-rose .page-link:hover,
[data-bs-theme-preset="rose"] .page-link:hover {
    color: #9F1239;
    background-color: #FFF1F2;
    border-color: #FDA4AF;
}

.theme-rose .page-item.active .page-link,
[data-bs-theme-preset="rose"] .page-item.active .page-link {
    background-color: #BE123C;
    border-color: #BE123C;
    color: #FFFFFF;
}

.theme-rose .page-item.disabled .page-link,
[data-bs-theme-preset="rose"] .page-item.disabled .page-link {
    color: rgba(136, 19, 55, 0.5);
    background-color: #FFF1F2;
}

/* ============================================
   Progress Bars
   ============================================ */
.theme-rose .progress,
[data-bs-theme-preset="rose"] .progress {
    background-color: #FFE4E6;
}

.theme-rose .progress-bar,
[data-bs-theme-preset="rose"] .progress-bar {
    background-color: #BE123C;
}

/* ============================================
   Modal & Offcanvas
   ============================================ */
.theme-rose .modal-content,
[data-bs-theme-preset="rose"] .modal-content {
    background-color: #FFFFFF;
    border-color: #FECDD3;
}

.theme-rose .modal-header,
[data-bs-theme-preset="rose"] .modal-header {
    background-color: #FFF1F2;
    border-bottom-color: #FECDD3;
    color: #9F1239;
}

.theme-rose .modal-footer,
[data-bs-theme-preset="rose"] .modal-footer {
    background-color: #FFF1F2;
    border-top-color: #FECDD3;
}

.theme-rose .offcanvas,
[data-bs-theme-preset="rose"] .offcanvas {
    background-color: #FFFFFF;
    border-color: #FECDD3;
}

.theme-rose .offcanvas-header,
[data-bs-theme-preset="rose"] .offcanvas-header {
    background-color: #FFF1F2;
    border-bottom: 1px solid #FECDD3;
}

/* ============================================
   List Groups
   ============================================ */
.theme-rose .list-group-item,
[data-bs-theme-preset="rose"] .list-group-item {
    background-color: #FFFFFF;
    border-color: #FECDD3;
    color: #881337;
}

.theme-rose .list-group-item:hover,
[data-bs-theme-preset="rose"] .list-group-item:hover {
    background-color: #FFF1F2;
}

.theme-rose .list-group-item.active,
[data-bs-theme-preset="rose"] .list-group-item.active {
    background-color: #BE123C;
    border-color: #BE123C;
    color: #FFFFFF;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.theme-rose .breadcrumb,
[data-bs-theme-preset="rose"] .breadcrumb {
    background-color: transparent;
}

.theme-rose .breadcrumb-item a,
[data-bs-theme-preset="rose"] .breadcrumb-item a {
    color: #BE123C;
}

.theme-rose .breadcrumb-item.active,
[data-bs-theme-preset="rose"] .breadcrumb-item.active {
    color: #881337;
}

/* ============================================
   Page Header
   ============================================ */
.theme-rose .page-title,
[data-bs-theme-preset="rose"] .page-title {
    color: #9F1239;
}

.theme-rose .page-subtitle,
.theme-rose .text-secondary,
[data-bs-theme-preset="rose"] .page-subtitle {
    color: rgba(136, 19, 55, 0.75) !important;
}

/* ============================================
   Dashboard-specific Styling
   ============================================ */
.theme-rose .dashboard-card,
[data-bs-theme-preset="rose"] .dashboard-card {
    background: #FFFFFF;
    border: 1px solid #FECDD3;
    box-shadow: 0 2px 8px rgba(136, 19, 55, 0.06);
}

.theme-rose .kpi-card,
[data-bs-theme-preset="rose"] .kpi-card {
    border: 1px solid #FECDD3;
}

.theme-rose .kpi-card.primary,
[data-bs-theme-preset="rose"] .kpi-card.primary {
    background: linear-gradient(135deg, #BE123C 0%, #9F1239 100%);
    color: #FFFFFF;
}

.theme-rose .kpi-value,
[data-bs-theme-preset="rose"] .kpi-value {
    color: #881337;
    font-weight: 700;
}

.theme-rose .kpi-label,
[data-bs-theme-preset="rose"] .kpi-label {
    color: #9F1239;
}

/* ============================================
   Utility Classes - Rose Theme Specific
   ============================================ */
.theme-rose .text-rose {
    color: #BE123C !important;
}

.theme-rose .text-rose-dark {
    color: #881337 !important;
}

.theme-rose .bg-rose {
    background-color: #FFE4E6 !important;
}

.theme-rose .bg-rose-light {
    background-color: #FFF1F2 !important;
}

.theme-rose .border-rose {
    border-color: #FECDD3 !important;
}

/* ============================================
   Scrollbar Styling (Webkit browsers)
   ============================================ */
.theme-rose ::-webkit-scrollbar,
[data-bs-theme-preset="rose"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.theme-rose ::-webkit-scrollbar-track,
[data-bs-theme-preset="rose"] ::-webkit-scrollbar-track {
    background: #FFF1F2;
}

.theme-rose ::-webkit-scrollbar-thumb,
[data-bs-theme-preset="rose"] ::-webkit-scrollbar-thumb {
    background: #FDA4AF;
    border-radius: 4px;
}

.theme-rose ::-webkit-scrollbar-thumb:hover,
[data-bs-theme-preset="rose"] ::-webkit-scrollbar-thumb:hover {
    background: #FB7185;
}

/* ============================================
   Selection Highlight
   ============================================ */
.theme-rose ::selection,
[data-bs-theme-preset="rose"] ::selection {
    background-color: rgba(190, 18, 60, 0.2);
    color: #881337;
}

/* ============================================
   ASAS Logo Styling
   ============================================ */

/* Navbar logo container */
.asas-logo-navbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ASAS text - Cooper Black to match logo */
.asas-logo-text {
    font-family: 'Cooper Black', serif;
    font-size: 1.6rem;
    font-weight: normal;
    color: #BE123C !important;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1;
}

/* Depot Management text in navbar - matching Depot Operations style */
.depot-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
}

/* Auth page logo - larger centered version */
.asas-logo-auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    padding: 1rem;
}

.asas-logo-auth .asas-logo-text {
    font-family: 'Cooper Black', serif;
    font-size: 3.5rem;
    font-weight: normal;
    color: #BE123C !important;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Responsive adjustments for navbar logo */
@media (max-width: 768px) {
    .asas-logo-navbar .asas-logo-text {
        font-size: 1.4rem;
    }
    .asas-logo-navbar .depot-title {
        font-size: 0.9rem;
    }
}

/* ============================================
   Theme Builder Floating Button
   ============================================ */
.theme-rose .settings .btn-floating,
[data-bs-theme-preset="rose"] .settings .btn-floating {
    background: linear-gradient(135deg, #BE123C 0%, #9F1239 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(190, 18, 60, 0.3);
}

.theme-rose .settings .btn-floating:hover,
[data-bs-theme-preset="rose"] .settings .btn-floating:hover {
    background: linear-gradient(135deg, #9F1239 0%, #881337 100%) !important;
    box-shadow: 0 6px 20px rgba(190, 18, 60, 0.4);
}

.theme-rose .theme-builder-tooltip,
[data-bs-theme-preset="rose"] .theme-builder-tooltip {
    background: #881337;
    color: #FFFFFF;
}

.theme-rose .theme-builder-tooltip::before,
[data-bs-theme-preset="rose"] .theme-builder-tooltip::before {
    border-right-color: #881337;
}
