/* Lurnexa HRMS Global Styles */

:root {
    --primary-bg: #F8F6FF;
    --sidebar-bg: #FFFFFF;
    --brand-color: #9B5DE5;
    --brand-color-hover: #7B2CBF;
    --secondary-violet: #C77DFF;
    --accent-pink: #E056FD;
    --text-main: #2D2D2D;
    --text-muted: #6B7280;
    --card-shadow: 0 4px 20px rgba(155, 93, 229, 0.08);
    --sidebar-width: 260px;
    --header-height: 80px;
    --border-color: #E9E5F5;
    --status-success: #22C55E;
    --status-warning: #F59E0B;
    --status-danger: #EF4444;
    --status-info: #3B82F6;
    --transition-speed: 0.3s;
}

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Global Table Header Styling */
table thead th {
    font-weight: 800 !important;
    color: var(--text-main) !important;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    box-shadow: 2px 0 20px rgba(0,0,0,0.03);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

/* Sidebar Collapsed State */
body.sidebar-closed .sidebar {
    left: calc(var(--sidebar-width) * -1);
}
body.sidebar-closed .main-wrapper {
    margin-left: 0;
}

.sidebar-brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 25px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-color) !important;
    border-bottom: 1px solid #f0f2f5;
    text-decoration: none;
}

.sidebar-brand i {
    margin-right: 12px;
    font-size: 1.8rem;
    color: var(--brand-color) !important;
}

.sidebar-brand i.fa-crown {
    color: #FFD700 !important;
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.3));
}

.sidebar-nav {
    padding: 20px 0;
    flex-grow: 1;
    overflow-y: auto;
}

.nav-item {
    padding: 0 15px;
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-muted);
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-link i {
    margin-right: 15px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.nav-link:hover, .nav-link.active {
    background-color: var(--brand-color);
    color: white;
}

/* Main Content Wrapper */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
}

/* Top Header */
.top-header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid #f0f2f5;
}

.toggle-btn {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-color);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 20px;
}

.toggle-btn:hover {
    background: var(--brand-color);
    color: white;
}

.search-bar {
    background: white;
    border-radius: 30px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    width: 350px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.search-bar input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    margin-left: 10px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

.icon-btn:hover {
    color: var(--brand-color);
}

.badge-dot {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 10px;
    height: 10px;
    background: #ff5b5b;
    border-radius: 50%;
    border: 2px solid white;
}

/* Notification Dropdown */
.notification-dropdown {
    width: 350px;
    padding: 0;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 15px !important;
}

.notification-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f4f6f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px 20px;
    display: flex;
    gap: 15px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f8fafc;
}

.notification-item:hover {
    background-color: #f8fafc;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.notification-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
    color: var(--text-main);
}

.notification-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.notification-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 5px 15px 5px 5px;
    border-radius: 30px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand-color) !important;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Page Content */
.page-content {
    padding: 30px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-main);
}

/* Custom Cards */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    background: white;
    margin-bottom: 24px;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid #f4f6f9;
    padding: 20px 24px;
    font-weight: 600;
    color: var(--text-main);
}

.card-body {
    padding: 24px;
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-wrapper {
        margin-left: 0;
    }
}

/* --- Birthday Theme Override --- */
body.birthday-mode-Female {
    --brand-color: #ff4d94;
    --primary-bg: #fff0f6;
    background-image: radial-gradient(#ff4d94 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    background-color: #fff0f6;
}
body.birthday-mode-Male {
    --brand-color: #f6ad55;
    --primary-bg: #fffaf0;
    background-image: radial-gradient(#f6ad55 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    background-color: #fffaf0;
}
body.birthday-mode-Other {
    --brand-color: #9f7aea;
    --primary-bg: #faf5ff;
    background-image: radial-gradient(#9f7aea 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    background-color: #faf5ff;
}

.birthday-mode-Female .sidebar-brand, .birthday-mode-Male .sidebar-brand, .birthday-mode-Other .sidebar-brand {
    color: var(--brand-color) !important;
}
.birthday-mode-Female .nav-link.active, .birthday-mode-Female .nav-link:hover,
.birthday-mode-Male .nav-link.active, .birthday-mode-Male .nav-link:hover,
.birthday-mode-Other .nav-link.active, .birthday-mode-Other .nav-link:hover {
    background-color: var(--brand-color) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.birthday-mode-Female .btn-primary, .birthday-mode-Male .btn-primary, .birthday-mode-Other .btn-primary {
    background-color: var(--brand-color) !important;
    border-color: var(--brand-color) !important;
}
.birthday-mode-Female .page-title::after, .birthday-mode-Male .page-title::after, .birthday-mode-Other .page-title::after {
    content: ' 🎂';
}
.birthday-mode-Female .sidebar::after, .birthday-mode-Male .sidebar::after, .birthday-mode-Other .sidebar::after {
    content: '🎉';
    position: absolute;
    bottom: 100px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.3;
}

/* Balloons */
.balloon {
    position: fixed;
    bottom: -100px;
    width: 50px;
    height: 70px;
    border-radius: 50%;
    z-index: 9999;
    animation: float-up var(--duration) ease-in forwards;
    opacity: 0.8;
}
.balloon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 2px;
    height: 40px;
    background: rgba(0,0,0,0.1);
}
@keyframes float-up {
    to { transform: translateY(-120vh) rotate(20deg); }
}

.text-gradient {
    background: linear-gradient(135deg, #1a4f8b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Auth Pages Styles --- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: none;
    overflow: hidden;
    width: 100%;
    max-width: 450px;
}
.auth-header {
    background-color: #ffffff;
    padding: 30px 30px 10px;
    text-align: center;
}
.auth-header h3 {
    font-weight: 700;
    color: #1a4f8b;
    margin-bottom: 5px;
}
.auth-header p {
    color: #6c757d;
    font-size: 0.9rem;
}
.auth-body {
    padding: 20px 40px 40px;
}
.brand-logo {
    width: auto;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

/* --- Calendar Page Styles --- */
.calendar-page .page-content {
    padding: 20px 30px !important;
}

.calendar-single-page {
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: none !important;
}

.calendar-container-wrap {
    flex: 1;
    display: flex;
    gap: 20px;
    min-height: 0;
    overflow: hidden;
    width: 100%;
}

.calendar-card {
    flex: 1;
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    min-width: 0; /* Fixes flexbox text overflow */
}

#calendar {
    flex-grow: 1;
    min-height: 500px;
}

.calendar-sidebar {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}

.sidebar-holiday-card {
    border-radius: 24px !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.holiday-list {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.fc-daygrid-event {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: block !important;
    margin: 2px 4px !important;
}

.fc-daygrid-day-events {
    padding-top: 5px;
}

.fc-toolbar-title { font-size: 1.4rem !important; font-weight: 800 !important; color: #1e293b; }
.fc-button-primary { 
    background-color: #f1f5f9 !important; 
    color: #475569 !important;
    border: none !important; 
    border-radius: 12px !important;
    font-weight: 700 !important;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
}
.fc-button-active { background-color: var(--brand-color) !important; color: white !important; }

.fc-list-event-time { display: none !important; }
.fc-list-day { display: none !important; }
.fc-list-event-dot { display: none !important; }

.fc-list-event { 
    border-bottom: 1px solid #f1f5f9 !important;
    transition: background 0.2s;
}
.fc-list-event:hover { background: #f1f5f9 !important; }
.fc-list-event-title { 
    font-size: 0.85rem !important; 
    font-weight: 600 !important; 
    padding: 12px 10px !important; 
}

.scroll-col {
    overflow-y: auto;
}
.scroll-col::-webkit-scrollbar { width: 5px; }
.scroll-col::-webkit-scrollbar-track { background: transparent; }
.scroll-col::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }

.holiday-date-badge {
    width: 48px;
    height: 48px;
    background: white;
    border: 1px solid #f1f5f9;
    color: var(--brand-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 800;
    line-height: 1;
}

/* --- Document/Letter Styles --- */
.letter-container {
    background-color: #fff;
    width: 210mm;
    min-height: 297mm;
    margin: 20px auto;
    padding: 25mm 20mm;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    position: relative;
}

.header {
    text-align: right;
    margin-bottom: 60px;
}

.company-name {
    font-size: 28px;
    font-weight: 700;
    color: #1a4f8b;
    letter-spacing: 1px;
}

.company-address {
    font-size: 12px;
    color: #666;
}

.letter-date {
    margin-bottom: 40px;
    font-weight: 600;
}

.letter-subject {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    text-decoration: underline;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.recipient {
    margin-bottom: 30px;
}

.content {
    margin-bottom: 50px;
    text-align: justify;
}

.closing {
    margin-bottom: 60px;
}

.info-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 15px;
    margin-bottom: 40px;
    padding: 25px;
    background-color: #f9fbff;
    border-radius: 12px;
    border: 1px solid #eef2f8;
}

.info-label {
    font-weight: 700;
    color: #555;
}

.signature-section {
    margin-top: 80px;
}

.signature-line {
    width: 200px;
    border-top: 2px solid #333;
    margin-bottom: 10px;
}

.signatory-name {
    font-weight: 700;
}

.signatory-title {
    color: #666;
    font-size: 14px;
}

.footer {
    margin-top: 100px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    font-size: 10px;
    color: #999;
    text-align: center;
}

.print-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    background-color: #1a4f8b;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.print-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

@media print {
    body { background-color: #fff !important; padding: 0 !important; }
    .letter-container { 
        width: 210mm !important;
        height: 297mm !important;
        box-shadow: none !important; 
        padding: 25mm 20mm !important;
        margin: 0 !important;
        border: none !important;
        page-break-after: always !important;
    }
    .no-print { display: none !important; }
}
/* --- Dashboard Page Styles --- */
.cake-wrapper { position: relative; display: inline-block; cursor: pointer; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.cake-wrapper:hover { transform: scale(1.05); }
.cake-box { font-size: 5.5rem; position: relative; display: inline-block; filter: drop-shadow(0 5px 15px rgba(255, 77, 148, 0.2)); }
.knife { position: absolute; top: -10px; right: -40px; font-size: 2.5rem; transform: rotate(-45deg); transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); opacity: 0; }
.cake-wrapper:hover .knife { opacity: 1; right: 0; top: 0; }
.cake-wrapper.cut .cake-icon { animation: cut-shake 0.6s ease-in-out; }
.cake-wrapper.cut .knife { animation: cut-action 0.6s ease-in-out forwards; }

@keyframes cut-shake { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.85) rotate(8deg); } }
@keyframes cut-action { 
    0% { transform: rotate(-45deg) translate(0, 0); } 
    40% { transform: rotate(-90deg) translate(-30px, 50px); }
    100% { transform: rotate(-90deg) translate(-30px, 60px); opacity: 0; }
}

.pulse-green {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.text-purple { color: #6f42c1 !important; }
.bg-light-blue { background-color: rgba(13, 110, 253, 0.04); }
.bg-light-green { background-color: rgba(25, 135, 84, 0.04); }
.bg-light-info { background-color: rgba(13, 202, 240, 0.04); }
.bg-light-orange { background-color: rgba(255, 193, 7, 0.04); }
.bg-light-red { background-color: rgba(220, 53, 69, 0.04); }
.bg-light-purple { background-color: rgba(111, 66, 193, 0.04); }
.bg-light-soft { background-color: #f8f9fc; }
.bg-light-green-soft { background-color: rgba(25, 135, 84, 0.05); }
.bg-light-yellow-soft { background-color: rgba(255, 193, 7, 0.05); }
.bg-light-red-soft { background-color: rgba(220, 53, 69, 0.05); }

.shortcut-link { text-decoration: none !important; }
.shortcut-card { 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent !important;
}
.shortcut-card:hover { 
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    background-color: #fff;
    border-color: #eee !important;
}

.shortcut-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.icon-shape {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bg-soft-primary { background-color: rgba(13, 110, 253, 0.1); }
.bg-soft-success { background-color: rgba(25, 135, 84, 0.1); }
.bg-soft-warning { background-color: rgba(255, 193, 7, 0.1); }

/* --- Expense Approvals Tab Styles --- */
.nav-tabs .nav-link {
    color: var(--text-muted);
    border: none;
    position: relative;
}
.nav-tabs .nav-link:hover {
    color: var(--brand-color);
    background: #f8faff;
}
.nav-tabs .nav-link.active {
    color: var(--brand-color) !important;
    background: transparent !important;
}
.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--brand-color);
}

.table-hover tbody tr:hover { background-color: #f8f9fc; }

/* --- Policies Page Styles --- */
.policy-card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    border-radius: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
}

.policy-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.policy-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-view-policy {
    border: 2px solid #edf2f7;
    color: var(--text-main);
    font-weight: 700;
    border-radius: 12px;
    padding: 12px;
    width: 100%;
    transition: all 0.2s ease;
    background: #f8fafc;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-view-policy:hover {
    background-color: var(--brand-color);
    color: white;
    border-color: var(--brand-color);
    box-shadow: 0 4px 12px rgba(26, 79, 139, 0.2);
}

.policy-modal-header {
    background: linear-gradient(135deg, #1a4f8b 0%, #3182ce 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 2rem;
}

.policy-content {
    line-height: 1.8;
    color: #4a5568;
}

.policy-content h6 {
    color: #2d3748;
    font-weight: 800;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* --- Profile Page Styles --- */
.profile-fixed-wrapper {
    height: calc(100vh - 60px); /* Adjust based on navbar height */
    overflow: hidden;
}

.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

.custom-pills .nav-link { color: #64748b; border: none !important; transition: all 0.3s ease; padding: 12px; }
.custom-pills .nav-link.active { background: white !important; color: #1a4f8b !important; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }

.icon-sq { width: 35px; height: 35px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.icon-circle { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }

.hover-shadow:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.04) !important; transform: translateY(-1px); }
.transition { transition: all 0.2s ease; }

/* --- Onboarding Page Styles --- */
.onboarding-page-body .top-header,
.onboarding-page-body .sidebar {
    display: none !important;
}

.onboarding-page-body .main-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
}

.onboarding-page-body .page-content {
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: #fdfdfd !important;
    position: relative;
}

.onboarding-page {
    position: relative;
    background: #fdfdfd;
    min-height: 100vh;
    z-index: 1;
    font-family: 'Outfit', 'Inter', sans-serif;
}

.blob {
    position: fixed;
    width: 500px;
    height: 500px;
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
    border-radius: 50%;
    animation: blobFloat 20s infinite alternate;
}

.blob-1 { background: #4f46e5; top: -100px; left: -100px; }
.blob-2 { background: #ec4899; bottom: -100px; right: -100px; animation-delay: -5s; }
.blob-3 { background: #f59e0b; top: 40%; right: 10%; animation-delay: -10s; }

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.bg-gradient-blue { background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%); }
.bg-gradient-purple { background: linear-gradient(135deg, #a855f7 0%, #d946ef 100%); }
.bg-gradient-orange { background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%); }
.bg-gradient-teal { background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%); }
.bg-gradient-dark { background: linear-gradient(135deg, #334155 0%, #1e293b 100%); }

.text-gradient {
    background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 30px;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.card-header-custom { padding: 20px 30px; border-radius: 30px 30px 0 0; }
.card-body-custom { padding: 35px; }

.btn-submit-colorful {
    background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    border: none;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
}

.btn-submit-colorful:hover:not(:disabled) {
    transform: scale(1.03);
    box-shadow: 0 15px 30px -5px rgba(236, 72, 153, 0.4);
}

.btn-submit-colorful:disabled { background: #e2e8f0; opacity: 0.8; }

.onboarding-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.step.active { opacity: 1; transform: scale(1.1); }
.step.completed { opacity: 1; }

.step-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.step.active .step-icon {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

.step.completed .step-icon { background: #10b981; color: #fff; border-color: transparent; }
.step-label { font-size: 0.85rem; font-weight: 600; color: #64748b; }
.step.active .step-label { color: #4f46e5; }

.step-line {
    flex-grow: 1;
    height: 3px;
    background: #e2e8f0;
    margin-bottom: 25px;
    border-radius: 3px;
}

.step-content { display: none; }
.step-content.active {
    display: block;
    animation: slideUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Attendance Dashboard Styles --- */
.attendance-card {
    border-radius: 20px;
    border: none;
    transition: all 0.3s ease;
}
.attendance-card:hover { transform: translateY(-5px); }

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}
.status-present { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.status-absent { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.status-leave { background: rgba(79, 70, 229, 0.1); color: #4f46e5; }
.status-pending { background-color: #ebf8ff; color: #2b6cb0; }
.status-approved { background-color: #f0fff4; color: #38a169; }
.status-rejected { background-color: #fff5f5; color: #c53030; }

.table-container {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
}
.table thead th {
    background: #f8fafc;
    border: none;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    padding: 16px;
}
.table td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
    font-weight: 500;
}
.nav-pills .nav-link {
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s ease;
}
.nav-pills .nav-link.active {
    background-color: var(--brand-color);
    color: white;
}

/* --- Leave Page Styles --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-tabs .nav-link {
    color: var(--text-muted);
    border: none;
    position: relative;
}
.nav-tabs .nav-link:hover {
    color: var(--brand-color);
    background: #f8faff;
}
.nav-tabs .nav-link.active {
    color: var(--brand-color) !important;
    background: transparent !important;
}
.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--brand-color);
}

/* --- Payroll & PF Management Styles --- */
.bg-soft-info { background: rgba(13, 202, 240, 0.1); }
.bg-soft-primary { background: rgba(13, 110, 253, 0.1); }
.nav-pills .nav-link { color: var(--text-muted); background: white; border: 1px solid #f0f2f5; }
.nav-pills .nav-link.active { background: var(--brand-color); color: white; border-color: var(--brand-color); }
.text-indigo { color: #6610f2; }
.smaller { font-size: 0.85rem; }

.bg-gradient-primary {
    background: linear-gradient(45deg, #1a4f8b 0%, #3a7bd5 100%);
}
.custom-table thead th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #8898aa;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #e9ecef;
}
.custom-table tbody td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #e9ecef;
}
.avatar-sm {
    width: 38px;
    height: 38px;
    font-size: 0.8rem;
}
.bg-primary-subtle { background-color: rgba(26, 79, 139, 0.1); }
.bg-success-subtle { background-color: rgba(45, 206, 137, 0.1); }
.bg-warning-subtle { background-color: rgba(251, 175, 63, 0.1); }
.bg-info-subtle { background-color: rgba(17, 201, 239, 0.1); }
.text-main { color: #1a4f8b; }
.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #1a4f8b;
}
.cursor-pointer { cursor: pointer; }
select option { color: #000; }

/* --- Utility Animations --- */
@keyframes pulse-anim {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}
.pulse { animation: pulse-anim 1.5s infinite; }

/* --- Payroll Login Styles --- */
.payroll-card-hover { transition: transform 0.3s ease; }
.payroll-card-hover:hover { transform: translateY(-5px); }

.payroll-login-input .input-group-text { border-radius: 8px 0 0 8px; }
.payroll-login-input .form-control { border-radius: 0 8px 8px 0; }
.payroll-login-input .form-control:focus { box-shadow: none; border-color: #ced4da; }

.payroll-card-header {
    background: linear-gradient(135deg, var(--brand-color-hover), var(--brand-color)) !important;
}

.btn-payroll-dark {
    background: linear-gradient(135deg, var(--brand-color), var(--secondary-violet)) !important;
    border: none;
    color: white !important;
    transition: all 0.3s ease;
    border-radius: 8px;
}
.btn-payroll-dark:hover {
    background: linear-gradient(135deg, var(--brand-color-hover), var(--brand-color)) !important;
    box-shadow: 0 5px 15px rgba(155, 93, 229, 0.4);
    color: white !important;
}

/* --- Add/Edit Employee Styles --- */
.bg-primary-soft { background-color: rgba(49, 130, 206, 0.1); }
.form-control:focus, .form-select:focus {
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.1) !important;
    border: 1px solid #3182ce !important;
}
.card-lift { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

/* --- Ex-Directory Styles --- */
.table-hover tbody tr:hover { background-color: #f8f9fc; }
.grayscale-img { filter: grayscale(100%); }

/* --- Full Page / Clean Layout --- */
.full-page-layout .top-header, 
.full-page-layout .sidebar { display: none !important; }
.full-page-layout .page-wrapper { padding-left: 0 !important; }
.full-page-layout .page-content { padding-top: 0 !important; background: #f0f2f5 !important; min-height: 100vh; }
.full-page-layout-body { background: #f0f2f5 !important; }

/* --- Review Onboarding Styles --- */
.btn-check:checked + .btn-outline-success { background-color: #198754 !important; color: white !important; }
.btn-check:checked + .btn-outline-danger { background-color: #dc3545 !important; color: white !important; }
.btn-outline-success:hover, .btn-outline-danger:hover { opacity: 0.9; }
label.btn { cursor: pointer; z-index: 5; }

/* --- PF Workflow Gradients --- */
.bg-gradient-info { background: linear-gradient(45deg, #36b9cc 0%, #1a8a9a 100%); }
.bg-gradient-warning { background: linear-gradient(45deg, #f6c23e 0%, #dda20a 100%); }
.bg-gradient-primary { background: linear-gradient(45deg, #4e73df 0%, #224abe 100%); }
.bg-gradient-success { background: linear-gradient(45deg, #1cc88a 0%, #13855c 100%); }
.badge-subtle { opacity: 0.8; }

/* --- PF Tracker Styles --- */
.timeline-small { max-height: 400px; overflow-y: auto; }
.bg-primary-subtle { background-color: rgba(78, 115, 223, 0.2) !important; }

/* --- Resignation Workflow Styles --- */
.resignation-container { max-width: 800px; margin: 20px auto; }
.resignation-card { background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); border-top: 5px solid #c53030; overflow: hidden; padding: 40px; }
.notice-title { font-size: 1.5rem; font-weight: 700; color: #2d3748; margin-bottom: 15px; }
.notice-subtitle { color: #718096; font-size: 0.95rem; line-height: 1.6; margin-bottom: 30px; }
.form-label-custom { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: #4a5568; letter-spacing: 0.05em; margin-bottom: 8px; }
.form-control-custom { width: 100%; padding: 12px 16px; border: 1px solid #e2e8f0; border-radius: 8px; background-color: #f8fafc; color: #2d3748; font-size: 0.95rem; transition: all 0.2s ease; }
.form-control-custom:focus { outline: none; border-color: #c53030; background-color: #fff; box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.1); }
.notice-period-alert { background-color: #fffaf0; border: 1px solid #feebc8; border-radius: 8px; padding: 15px 20px; margin: 25px 0; display: flex; align-items: center; gap: 12px; color: #c05621; font-size: 0.9rem; }
.submit-btn-custom { width: 100%; background-color: #c53030; color: white; border: none; border-radius: 8px; padding: 14px; font-weight: 600; font-size: 1rem; transition: all 0.2s ease; cursor: pointer; display: flex; justify-content: center; align-items: center; }
.submit-btn-custom:hover { background-color: #9b2c2c; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(197, 48, 48, 0.2); }
.submit-btn-custom:active { transform: translateY(0); }
.timeline-container { margin-top: 40px; padding-top: 30px; border-top: 1px solid #edf2f7; }

/* --- Tab Navigation Styles --- */
.nav-tabs .nav-link { color: var(--text-muted); border: none; position: relative; }
.nav-tabs .nav-link:hover { color: var(--brand-color); background: #f8faff; }
.nav-tabs .nav-link.active { color: var(--brand-color) !important; background: transparent !important; }
.nav-tabs .nav-link.active::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--brand-color); }

/* --- Header Filter Select Styles --- */
.header-filter-select { color: white !important; background-color: transparent !important; transition: all 0.2s ease; }
.header-filter-select:focus { background-color: rgba(255, 255, 255, 0.15) !important; color: white !important; border: 1px solid rgba(255, 255, 255, 0.3) !important; box-shadow: none !important; }
.header-filter-select option { color: #333 !important; background-color: white !important; }

/* --- Restoration of missing utility and component styles --- */

/* Utility: Transitions & Hover Effects */
.transition-all {
    transition: all 0.3s ease !important;
}

.hover-translate-y:hover {
    transform: translateY(-5px);
}

.shadow-sm-hover:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

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

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Holiday & Calendar Components */
.holiday-list {
    max-height: 500px;
    overflow-y: auto;
}

.holiday-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.holiday-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.holiday-date-badge {
    width: 45px;
    height: 45px;
    background: var(--brand-color);
    color: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.holiday-date-badge span:first-child {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.9;
    line-height: 1;
}

.holiday-date-badge span:last-child {
    font-size: 1.1rem;
    line-height: 1;
}

.calendar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

/* FullCalendar Customizations & Fixes */
.fc-daygrid-day-number {
    color: #1e293b !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: 8px !important;
}

.fc-col-header-cell-cushion {
    color: #475569 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: 10px 0 !important;
}

.fc-daygrid-event {
    border-radius: 6px !important;
    padding: 2px 6px !important;
    font-size: 0.85rem !important;
}

.fc-event-title {
    font-weight: 500 !important;
}

/* Soft Background Utilities */
.bg-light-soft { background-color: #f8f9fc !important; }
.bg-light-green-soft { background-color: #e6fffa !important; color: #047857 !important; }
.bg-light-yellow-soft { background-color: #fffbeb !important; color: #b45309 !important; }
.bg-light-red-soft { background-color: #fef2f2 !important; color: #b91c1c !important; }
.bg-light-blue-soft { background-color: #eff6ff !important; color: #1d4ed8 !important; }

/* Certificate Feature Styles */
.bg-light-blue {
    background-color: #f0f7ff !important;
    border: 1px dashed #b9d5ff !important;
}

.bg-light-orange {
    background-color: #fff9f0 !important;
    border-color: #ffe4b9 !important;
}

.bg-light-red {
    background-color: #fff5f5 !important;
    border-color: #ffd1d1 !important;
}

.cert-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
}

.cert-verify-badge {
    letter-spacing: 0.5px;
}

@keyframes pulse-green {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.pulse-green {
    animation: pulse-green 2s infinite ease-in-out;
}

/* Custom Profile Tabs Segmented Control */
.custom-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    background-color: #f1f5f9 !important;
    padding: 6px !important;
    border-radius: 14px !important;
    border: none !important;
}

.custom-pills .nav-item {
    flex: 0 0 auto !important;
    margin: 0 !important;
    display: flex !important;
}

.custom-pills .nav-link {
    background-color: transparent !important;
    color: #475569 !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}

.custom-pills .nav-link:hover {
    color: #1e293b !important;
    background-color: rgba(0, 0, 0, 0.04) !important;
}

.custom-pills .nav-link.active {
    background-color: #ffffff !important;
    color: var(--brand-color) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important;
}

/* --- PREMIUM MODERN HRMS THEME OVERRIDES --- */
body {
    background-color: var(--primary-bg) !important;
    color: var(--text-main);
    font-family: 'Poppins', 'Inter', sans-serif;
    transition: all var(--transition-speed) ease;
}

/* Sidebar Overrides */
.sidebar {
    background-color: var(--sidebar-bg) !important;
    border-right: 1px solid var(--border-color);
}
.sidebar .nav-link {
    border-radius: 8px !important;
    margin: 4px 15px;
    padding: 12px 15px;
    transition: all var(--transition-speed) ease;
    border-left: 3px solid transparent;
}
.sidebar .nav-link:hover {
    background-color: #F5EEFF !important;
    color: var(--brand-color) !important;
}
.sidebar .nav-link:hover i {
    color: #7B2CBF !important;
}
.sidebar .nav-link.active {
    background-color: #E9D8FD !important;
    border-left: 3px solid var(--brand-color) !important;
    color: var(--brand-color) !important;
}
.sidebar .nav-link.active i {
    color: #7B2CBF !important;
}

/* Navbar Overrides */
.top-header {
    background: white !important;
    box-shadow: 0 2px 10px rgba(155, 93, 229, 0.05) !important;
    border-bottom: none !important;
}
.icon-btn {
    color: var(--brand-color) !important;
    background: transparent;
}
.icon-btn:hover {
    background: #F5EEFF !important;
}
.search-bar {
    border: 1px solid var(--border-color) !important;
    background: #FFFFFF !important;
}
.search-bar:focus-within {
    border-color: var(--secondary-violet) !important;
    box-shadow: 0 0 0 3px rgba(199, 125, 255, 0.1) !important;
}

/* Cards Overrides */
.card {
    background-color: #FFFFFF;
    border-radius: 16px !important;
    border: none;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(155, 93, 229, 0.12);
}

/* Buttons */
.btn-primary, .btn-submit-colorful {
    background-color: var(--brand-color) !important;
    border: none !important;
    color: white !important;
    border-radius: 8px !important;
    padding: 10px 20px;
    box-shadow: 0 4px 10px rgba(155, 93, 229, 0.2);
    transition: all var(--transition-speed) ease;
}
.btn-primary:hover, .btn-submit-colorful:hover {
    background-color: var(--brand-color-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(123, 44, 191, 0.25);
}
.btn-gradient {
    background: linear-gradient(135deg, var(--accent-pink), var(--brand-color)) !important;
    border: none !important;
    color: white !important;
    border-radius: 8px !important;
}
.btn-secondary {
    background-color: #F3F4F6 !important;
    color: var(--text-main) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}
.btn-secondary:hover {
    background-color: #E5E7EB !important;
}

.btn-outline-primary {
    background-color: transparent !important;
    color: var(--brand-color) !important;
    border: 1px solid var(--brand-color) !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}
.btn-outline-primary:hover {
    background-color: var(--brand-color) !important;
    color: #FFFFFF !important;
}

/* Tables */
.table {
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    border-color: var(--border-color);
}
.table thead th {
    background-color: #F1E8FF !important;
    color: var(--text-main) !important;
    border-bottom: none !important;
    font-weight: 600;
}
.table tbody tr {
    transition: background-color var(--transition-speed) ease;
    border-bottom: 1px solid var(--border-color);
}
.table tbody tr:hover {
    background-color: #FAF5FF !important;
}

/* Forms */
.form-control, .form-select, input, select {
    border: 1px solid #D8C7F7;
    border-radius: 8px !important;
    transition: all var(--transition-speed) ease !important;
}
.form-control:focus, .form-select:focus, input:focus, select:focus {
    border-color: var(--brand-color) !important;
    box-shadow: 0 0 0 4px rgba(155, 93, 229, 0.12) !important;
    outline: none !important;
}

/* Status Badges */
.bg-success, .status-approved, .status-present { background-color: rgba(34, 197, 94, 0.1) !important; color: #22C55E !important; }
.bg-warning, .status-pending { background-color: rgba(245, 158, 11, 0.1) !important; color: #F59E0B !important; }
.bg-danger, .status-rejected, .status-absent { background-color: rgba(239, 68, 68, 0.1) !important; color: #EF4444 !important; }
.bg-info, .status-wfh, .status-leave { background-color: rgba(59, 130, 246, 0.1) !important; color: #3B82F6 !important; }

/* Modals */
.modal-content {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1) !important;
}
.modal-header {
    background-color: #F3E8FF !important;
    border-bottom: none !important;
    border-radius: 16px 16px 0 0 !important;
}

/* Calendar Overrides */
.fc-day-today { background-color: rgba(224, 86, 253, 0.05) !important; }
.fc-event { border: none !important; border-radius: 6px !important; box-shadow: 0 2px 4px rgba(155, 93, 229, 0.15) !important; }

/* Custom utility overrides */
.shadow-sm { box-shadow: 0 2px 8px rgba(155, 93, 229, 0.04) !important; }
.rounded-4 { border-radius: 16px !important; }

/* Global Unified Input Groups override to prevent separated borders and border-radii */
.input-group {
    border: 1px solid #D8C7F7 !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex !important;
    align-items: stretch !important;
    overflow: hidden !important;
}
.input-group:focus-within {
    border-color: var(--brand-color) !important;
    box-shadow: 0 0 0 4px rgba(155, 93, 229, 0.12) !important;
}
.input-group .form-control,
.input-group input,
.input-group select,
.input-group .form-select {
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
}
.input-group .input-group-text {
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
}
.input-group .form-control:focus,
.input-group input:focus,
.input-group select:focus,
.input-group .form-select:focus {
    border: none !important;
    box-shadow: none !important;
}
.input-group .btn {
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    .page-content {
        padding: 15px;
    }
    
    .top-header {
        padding: 0 15px;
    }
    
    /* Shrink logo container to make room */
    .top-header div.text-center h4 {
        font-size: 1.1rem;
        letter-spacing: 2px !important;
    }
    
    .top-header div.text-center img {
        height: 25px !important;
    }
    
    /* Collapse user name/role into just the avatar on mobile */
    .user-profile .user-info, 
    .user-profile .fa-chevron-down {
        display: none !important;
    }
    
    .user-profile {
        padding: 0;
        background: transparent;
        box-shadow: none;
    }
    
    /* Prevent cards and table wrappers from overflowing */
    .card {
        margin-bottom: 16px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    /* Prevent charts or canvas from causing horizontal overflow */
    canvas {
        max-width: 100% !important;
    }
}
