/* ==========================================================================
   GLOBAL BRAND STYLE SHEET (style.css)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #0f172a;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --bg-light: #f8fafc;
    --bg-dark: #09090b;
    --card-bg-light: #ffffff;
    --card-bg-dark: #0c0c0e;
    --text-light: #334155;
    --text-dark: #cbd5e1;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 78px;
    --header-height: 76px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-light);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

[data-bs-theme="dark"] body {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

/* Premium Login Page Redesign */
body.vh-100 {
    background: #f8fafc !important;
    font-family: 'Inter', sans-serif !important;
}

[data-bs-theme="dark"] body.vh-100 {
    background: #09090b !important;
}

body.vh-100 .card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
    padding: 40px !important;
    width: 100%;
}

[data-bs-theme="dark"] body.vh-100 .card {
    background: #0c0c0e !important;
    border: 1px solid #1a1a1e !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5) !important;
}

body.vh-100 .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

[data-bs-theme="dark"] body.vh-100 .form-label {
    color: #94a3b8;
}

body.vh-100 .form-control {
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    background: #ffffff;
    color: #0f172a;
}

[data-bs-theme="dark"] body.vh-100 .form-control {
    background: #09090b !important;
    border-color: #1a1a1e !important;
    color: #ffffff !important;
}

body.vh-100 .form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
}

body.vh-100 .btn-primary {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    border-radius: 8px !important;
    padding: 11px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2) !important;
}

body.vh-100 .btn-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    box-shadow: 0 6px 12px -1px rgba(37, 99, 235, 0.3) !important;
}

/* Glassmorphism / Clean Card Classes */
.glass-card {
    background: var(--card-bg-light);
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
    border-radius: 12px;
}

[data-bs-theme="dark"] .glass-card {
    background: var(--card-bg-dark) !important;
    border: 1px solid #1a1a1e !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

.text-center img {
    display: block;
    width: 60%;
    margin: 0 auto 24px auto;
}

/* Icons & Buttons Styling */
.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #475569;
    transition: background 0.2s, color 0.2s;
}

[data-bs-theme="dark"] .btn-icon {
    color: #cbd5e1;
}

.btn-icon:hover {
    background: #f1f5f9;
    color: #0f172a;
}

[data-bs-theme="dark"] .btn-icon:hover {
    background: #1a1a1e;
    color: #ffffff;
}

.icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 4px;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Transitions */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .hover-lift:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Toast Notifications */
#notification-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast-notification {
    background: var(--card-bg-light);
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    min-width: 320px;
    max-width: 400px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transform: translateY(30px);
    opacity: 0;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

[data-bs-theme="dark"] .toast-notification {
    background: var(--card-bg-dark);
    border: 1px solid #1a1a1e;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification.hide {
    transform: translateY(15px) scale(0.98);
    opacity: 0;
}

.toast-notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast-notification-content {
    flex-grow: 1;
}

.toast-notification-title {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-bottom: 2px;
}

[data-bs-theme="dark"] .toast-notification-title {
    color: #ffffff;
}

.toast-notification-desc {
    color: #64748b;
    font-size: 0.78rem;
    margin: 0;
}

[data-bs-theme="dark"] .toast-notification-desc {
    color: #94a3b8;
}

.toast-notification-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.toast-notification-close:hover {
    color: var(--danger-color);
}

/* Brochure Layout Styles */
.brochure-item-card {
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

[data-bs-theme="dark"] .brochure-item-card {
    border: 1px solid #1a1a1e;
    background-color: #0c0c0e;
}

.brochure-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-color);
}

.brochure-icon {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 0;
}

.brochure-icon.folder {
    color: #f59e0b;
}

.brochure-icon.file-pdf {
    color: #ef4444;
}

.brochure-icon.file-image {
    color: #3b82f6;
}

.brochure-icon.file-word {
    color: #2563eb;
}

.brochure-icon.file-excel {
    color: #10b981;
}

.brochure-icon.file-video {
    color: #8b5cf6;
}

.brochure-icon.file-default {
    color: #6b7280;
}

/* Table cursor helper */
.lead-row td,
#leadsTableBody tr td {
    cursor: pointer;
}

.lead-row td:last-child,
#leadsTableBody tr td:last-child {
    cursor: default;
}

/* Employee of the Month Premium Banner Background & Effects */
.eom-banner-custom {
    position: relative;
    background: radial-gradient(circle at 18% 50%, #062861 0%, #020d24 60%, #010612 100%) !important;
}

.eom-sunburst {
    position: absolute;
    top: 50%;
    left: 18%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: repeating-conic-gradient(from 0deg,
            transparent 0deg 4deg,
            rgba(255, 255, 255, 0.025) 4deg 8deg);
    pointer-events: none;
}

.eom-ambient-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(9, 53, 122, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.eom-wave-overlay-1 {
    position: absolute;
    width: 120%;
    height: 150%;
    bottom: -60%;
    right: -20%;
    border-radius: 45%;
    background: rgba(1, 6, 18, 0.4);
    transform: rotate(-15deg);
    pointer-events: none;
}

.eom-wave-overlay-2 {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 90% 80%, transparent 40%, rgba(2, 13, 36, 0.6) 80%);
    pointer-events: none;
}

.eom-halftone-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 35%;
    height: 60%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
    background-size: 10px 10px;
    -webkit-mask-image: radial-gradient(circle at top right, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 80%);
    mask-image: radial-gradient(circle at top right, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 80%);
    pointer-events: none;
}

.eom-diamond {
    position: absolute;
    background: linear-gradient(135deg, #ffe082 0%, #d4af37 40%, #aa7c11 100%);
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    pointer-events: none;
}

.eom-size-sm {
    width: 6px;
    height: 6px;
}

.eom-size-md {
    width: 10px;
    height: 10px;
}

.eom-size-lg {
    width: 16px;
    height: 16px;
}

.eom-d1 {
    top: 16%;
    left: 7%;
    opacity: 0.8;
}

.eom-d2 {
    top: 32%;
    left: 6%;
    opacity: 0.9;
}

.eom-d3 {
    top: 51%;
    left: 8%;
    opacity: 1;
}

.eom-d4 {
    top: 74%;
    left: 5%;
    opacity: 0.7;
}

.eom-d5 {
    top: 75%;
    left: 13%;
    opacity: 0.8;
}

.eom-d6 {
    top: 24%;
    left: 40%;
    opacity: 0.9;
}

.eom-d7 {
    top: 56%;
    left: 50%;
    opacity: 0.9;
}

.eom-d8 {
    top: 25%;
    left: 86%;
    opacity: 0.9;
}

.eom-d9 {
    top: 80%;
    left: 83%;
    opacity: 0.8;
}

/* Brochure & Media Previews */
.brochure-card-preview-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* For cards with a visual image or video preview, let them size dynamically based on image content */
.brochure-card-preview-wrapper:has(.brochure-preview-container) {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Standard height of 100px for folders and files without visual preview */
.brochure-card-preview-wrapper:not(:has(.brochure-preview-container)) {
    height: 100px;
}

.brochure-preview-container {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.brochure-preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brochure-item-card:hover .brochure-preview-img {
    transform: scale(1.06);
}

.brochure-preview-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brochure-video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.brochure-item-card:hover .brochure-video-overlay {
    opacity: 0;
}