/* ===========================
   CSS Custom Properties
   =========================== */
:root {
    /* Colors - Vibrant Gradients */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    /* Solid Colors */
    --primary-color: #5b5fc7;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-primary: #242424;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    /* Background */
    --bg-primary: #ffffff;
    --bg-secondary: #F4F7FE;
    --bg-tertiary: #f3f4f6;
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: #5b5fc7;
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 0.625rem;
    --radius-xl: 2rem;
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Dark Theme Support (Teams) */
body.theme-dark {
    --text-primary: #000000;
    --text-secondary: #5b5fc7;
    --text-light: #d1d1d1;
    --bg-primary: #ffffff;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eeeeee;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
}

    body.theme-dark .form-label, body.theme-dark label {
        color: var(--primary-color) !important;
    }

    body.theme-dark .form-floating > label {
        color: var(--text-secondary) !important;
    }

    body.theme-dark .form-control,
    body.theme-dark .form-select {
        background-color: var(--bg-secondary);
        color: var(--text-primary);
        border-color: var(--bg-tertiary);
    }

        body.theme-dark .form-control:focus,
        body.theme-dark .form-select:focus {
            background-color: var(--bg-secondary);
            color: var(--text-primary);
            border-color: var(--primary-color);
        }

    body.theme-dark .form-floating > .form-control:focus ~ label,
    body.theme-dark .form-floating > .form-control:not(:placeholder-shown) ~ label,
    body.theme-dark .form-floating > .form-select ~ label {
        color: var(--primary-color) !important;
    }

/* ===========================
   Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", SegoeUI, "Segoe UI Web", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    background: #FAFAFA !important;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

main {
    min-height: 100vh;
}

/* ===========================
   Navigation Bar
   =========================== */
.navbar {
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-icon {
    width: 40px;
    height: 40px;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 8px 18px !important;
    font-size: 14px !important;
    font-weight: 600;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.2);
        transition: left var(--transition-normal);
    }

    .btn:hover::before {
        left: 100%;
    }

.btn-primary {
    background: #5B5FC7 !important;
    color: white;
    box-shadow: var(--shadow-md);
}



.btn-outline-primary {
    position: relative !important;
    display: inline-block !important;
    padding: 8px 18px !important;
    font-weight: 500 !important;
    color: #5B5FC7 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    transition: 0.3s ease !important;
}

.btn-outline-primary {
    background: linear-gradient(#fff, #fff) padding-box, var(--primary-gradient) border-box !important;
}

    /* Hover → gradient background + white text */
    .btn-outline-primary:hover {
        color: white !important;
        background: var(--primary-gradient) !important;
        box-shadow: var(--shadow-md) !important;
    }



.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

    .btn-secondary:hover {
        background: var(--bg-secondary);
    }

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 600px;
        height: 600px;
        background: var(--primary-gradient);
        opacity: 0.1;
        border-radius: 50%;
        filter: blur(80px);
        animation: float 8s ease-in-out infinite;
    }

    .hero-section::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -10%;
        width: 500px;
        height: 500px;
        background: var(--secondary-gradient);
        opacity: 0.1;
        border-radius: 50%;
        filter: blur(80px);
        animation: float 6s ease-in-out infinite reverse;
    }

@keyframes float {

    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-30px);
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: #ffffff;
    backdrop-filter: blur(10px);
    border: 1px solid #5b5fc7;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    width: 56px;
    height: 56px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #e3e4ff;
    border-radius: 50%;
}

    .feature-icon svg {
        width: 28px;
        height: 28px;
        color: var(--primary-color);
    }

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===========================
   Dashboard
   =========================== */

.dashboard {
    min-height: 100vh;
}

/*.dashboard .container{
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}*/

.dashboard-header {
    margin-bottom: 3rem;
    height: 300px;
    background:
    /* Top glow */
    radial-gradient( circle at 50% -10%, rgba(91, 95, 199, 0.55) 0%, rgba(91, 95, 199, 0.30) 25%, rgba(20, 20, 60, 0) 55% ),
    /* Center glow */
    radial-gradient( circle at 50% 40%, rgba(91, 95, 199, 0.50) 0%, rgba(91, 95, 199, 0.25) 35%, rgba(15, 15, 40, 0.8) 80%, rgba(10, 10, 30, 1) 100% ),
    /* Bottom glow */
    radial-gradient( circle at 50% 100%, rgba(91, 95, 199, 0.35) 0%, rgba(91, 95, 199, 0.15) 25%, rgba(10, 10, 30, 1) 80% ),
    /* Deep navy fallback */
    #07071a;
    background-blend-mode: screen, screen, normal, normal;
    background-size: cover;
    background-repeat: no-repeat;
}

    .dashboard-header .container {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

.welcome-section {
    text-align: center;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #ffffff;
}

.dashboard-subtitle {
    font-size: 1.125rem;
    color: #e9e8e8;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ===========================
   Dashboard Cards
   =========================== */
.dashboard-card {
    background: var(--bg-primary);
    border-radius: 10px;
    padding: 2rem;
    transition: all var(--transition-normal);
    border: 1px solid #efefef;
}

.profile-card .card-header {
    min-height: 140px;
    background: var(--primary-color);
    border-radius: 12px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-header {
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.card-content {
    display: flex;
    gap: 1rem;
}

/* Profile Card */
.profile-card {
    grid-column: 1 / -1;
    background: #ffffff;
}

    .profile-card .card-title {
        color: #ffffff;
        font-size: 24px;
    }

    .profile-card .card-content {
        align-items: center;
        gap: 14px;
    }

.profile-avatar-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e3e4ff;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #5b5fc7;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.profile-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
    line-height: 24px;
}

.profile-email span svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.filter-btn.active {
    background: #5B5FC7 !important;
    color: #ffffff !important;
}

.profile-email span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #e3e4ff;
    border-radius: 50%;
}

.profile-email {
    align-items: center;
    display: inline-flex;
    column-gap: 8px;
    font-size: 17px;
    font-weight: 500;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 400;
    justify-content: center;
    color: #13A10E;
}

.profile-badge svg {
    width: 14px;
    height: 14px;
}

.profile-details {
    width: 100%;
    text-align: left;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.profile-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.profile-detail-item:last-child {
    border-bottom: none;
}

.profile-detail-item strong {
    color: var(--text-secondary);
    font-weight: 600;
    min-width: 120px;
}

.profile-detail-item span {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    flex: 1;
}

/* ===========================
   Profile Progress Section
   =========================== */
.profile-progress {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

    .profile-progress h4 {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 0 !important;
        letter-spacing: 0.3px;
        position: relative;
        color: var(--text-primary);
    }

.progress-item {
    position: relative;
    padding: 16px 12px;
    border-radius: 5px;
    background: #ffffff;
}

    .progress-item:hover .progress-bar {
        box-shadow: 0 0 15px rgba(91, 95, 199, 0.3);
    }

.progress-label {
    font-size: 14px;
    color: var(--text-primary);
    align-items: center;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    font-weight: 600;
}
    .progress-item:hover .progress-label {
        color: #2c3e50;
    }

.progress-label span {
    width: 10px;
    height: 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 6px;
}

.project-item-header {
    margin-bottom: 12px;
}

.project_hour {
    background: #28A745 !important;
}

.project_hour-current {
    color: #28A745;
}

.project_annual {
    background: #FFCB3C !important;
}

.project_annual-current {
    color: #FFCB3C;
}

.project_sick {
    background: #6264A7 !important;
}

.project_sick-current {
    color: #6264A7;
}

.progress-label svg {
    vertical-align: middle;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
    width: 22px !important;
    height: 22px !important;
}

    .progress-item:hover .progress-label svg {
        transform: scale(1.1) rotate(-5deg);
    }

.progress-value {
    color: var(--text-primary) !important;
    font-size: 14px;
    font-weight: 600;
    position: relative;
}

    .progress-item:hover .progress-value {
        transform: scale(1.05);
        background: rgba(255, 255, 255, 0.9);
    }

.progress {
    height: 12px !important;
    border-radius: 24px !important;
}

   

    .progress-item:hover .progress::before {
        opacity: 1;
    }

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-bar {
    border-radius: 10px;
    background: linear-gradient(90deg, #4e73df 0%, #224abe 100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(78, 115, 223, 0.3);
}


@keyframes progressShine {
    0% {
        left: -100%;
    }

    50%, 100% {
        left: 100%;
    }
}

/* Individual Progress Bar Colors with Gradients */

/* Pulse animation for progress bars */
@keyframes progressPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(91, 95, 199, 0.3);
    }

    50% {
        box-shadow: 0 2px 16px rgba(91, 95, 199, 0.5);
    }
}

.progress-item:hover .progress-bar {
    animation: progressPulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {

        .profile-progress h4 {
            font-size: 0.875rem;
        }

    .form-select{
        font-size: 14px !important;
    }

    .progress-label svg {
        width: 14px;
        height: 14px;
        margin-right: 6px;
    }
}

/* Dark mode support */
/*body.theme-dark .profile-progress {
    background: linear-gradient(135deg, rgba(91, 95, 199, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(91, 95, 199, 0.2);
}*/

/*body.theme-dark .progress-item:hover {
    background: rgba(91, 95, 199, 0.08);
}

body.theme-dark .progress {
    background-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .progress-label {
    color: #d1d1d1;
}

body.theme-dark .progress-item:hover .progress-label {
    color: #ffffff;
}

body.theme-dark .progress-value {
    background: rgba(91, 95, 199, 0.2);
}

body.theme-dark .progress-item:hover .progress-value {
    background: rgba(91, 95, 199, 0.3);
}*/

/* Stats Card */
.stats-card .card-content {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .card-icon svg {
        width: 30px;
        height: 30px;
    }

.stats-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stats-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.stats-change {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    display: inline-block;
}

    .stats-change.positive {
        background: rgba(34, 197, 94, 0.1);
        color: #22c55e;
    }

/* Activity Card */
.activity-card {
    grid-column: span 2;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #efefff;
    border-radius: 12px;
}

.add-icon {
    background: var(--primary-gradient);
    width: 36px;
    height: 30px;
    display: inline-flex;
    justify-content: center;
    border-radius: 6px;
    align-items: center;
    color: #ffffff;
}

    .add-icon svg {
        width: 20px;
        height: 20px;
    }

.activity-icon svg {
    color: var(--primary-color);
}

.activity-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    border: 1px solid #e9e9e9;
}

.activity-details {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Actions Card */
.action-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

    .action-button:hover {
        background: var(--bg-primary);
        border-color: var(--primary-color);
        transform: translateX(5px);
    }

    .action-button svg {
        width: 24px;
        height: 24px;
        color: var(--primary-color);
    }

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .activity-card,
    .profile-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .dashboard-title {
        font-size: 1.7rem;
    }

    .dashboard-subtitle{
        font-size: 15px;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .user-name {
        display: none;
    }
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-card {
    animation: fadeIn 0.6s ease-out;
}

    .dashboard-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .dashboard-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .dashboard-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .dashboard-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .dashboard-card:nth-child(5) {
        animation-delay: 0.5s;
    }

    .dashboard-card:nth-child(6) {
        animation-delay: 0.6s;
    }

/* ===========================
   Form Styles
   =========================== */
.form-floating {
    position: relative;
}

.form-control,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

    .form-control:focus,
    .form-select:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.form-floating > .form-control,
.form-floating > .form-select {
    padding: 1.625rem 1rem 0.625rem;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 1rem;
    pointer-events: none;
    transform-origin: 0 0;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: var(--primary-color);
}

.invalid-feedback {
    display: none;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}



/* ===========================
   Loading Spinner
   =========================== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===========================
   Table Styles
   =========================== */
.table {
    width: 100%;
    border-collapse: collapse;
}

    .table thead {
        background: var(--bg-secondary);
    }

    .table th {
        font-weight: 600;
        font-size: 0.75rem;
        color: var(--text-secondary);
        padding: 1rem;
        text-align: left;
    }

    .table td {
        padding: 1rem;
        border-top: 1px solid var(--bg-tertiary);
        color: var(--text-primary);
    }

    .table tbody tr {
        transition: all var(--transition-fast);
    }

.table-hover tbody tr:hover {
    background: unset !important;
}
.table-hover > tbody > tr:hover > * {
    --bs-table-bg-state : unset !important;
}
/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: capitalize;
}

.bg-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.text_success {
    color: #22c55e;
}

.bg-warning {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
}

.text_warning {
    color: #f59e0b;
}

.bg-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.text_danger{
        color: #ef4444;
}

.bg-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.text_secondary {
    color: var(--text-secondary);
}

/* ===========================
   Card Improvements
   =========================== */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.card-body {
    padding: 1.5rem;
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.border-0 {
    border: none;
}

/* ===========================
   Button Size Variants
   =========================== */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid var(--bg-tertiary);
    color: var(--text-primary);
}

    .btn-outline-secondary:hover {
        background: var(--bg-tertiary);
    }

/* ===========================
   Utility Classes
   =========================== */
.text-center {
    text-align: center;
}

.text-end {
    text-align: right;
}

.text-muted {
    color: var(--text-secondary);
}

.text-primary {
    color: var(--primary-color);
}

.fw-bold {
    font-weight: 700;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 2rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.ms-2 {
    margin-left: 0.5rem;
}

.p-0 {
    padding: 0;
}

.p-4 {
    padding: 1.5rem;
}

.ps-4 {
    padding-left: 1.5rem;
}

.pe-4 {
    padding-right: 1.5rem;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-start {
    justify-content: flex-start;
}

.align-items-center {
    align-items: center;
}

.align-items-end {
    align-items: flex-end;
}

.align-middle {
    vertical-align: middle;
}

.w-100 {
    width: 100%;
}

.border-top-0 {
    border-top: 0;
}

.table-responsive {
    overflow-x: auto;
}

/* ===========================
   Alert Styles
   =========================== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-left: 4px solid #22c55e;
    color: #166534;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.alert-dismissible {
    position: relative;
    padding-right: 3rem;
}

.btn-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

    .btn-close:hover {
        opacity: 1;
    }

/* ===========================
   Container Improvements
   =========================== */
.container,
.container-fluid {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: auto;
    margin-left: auto;
}

.container {
    max-width: 1400px;
}

/* Row and Column Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.col-6,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-6,
.col-md-12 {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (min-width: 768px) {
    .col-md-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ===========================
   Premium Loader System
   =========================== */
.global-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

    .global-loader-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.premium-loader {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--glass-border);
}

.loader-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--bg-tertiary);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.125rem;
    margin: 0;
}

.inline-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: var(--radius-md);
}

.inline-loader-content {
    text-align: center;
}

.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.125em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

.spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
    border-width: 0.1em;
}

/* ===========================
   Premium Notification System
   =========================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    min-width: 300px;
    max-width: 400px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid;
    transform: translateX(400px);
    opacity: 0;
    transition: all var(--transition-normal);
}

    .notification.show {
        transform: translateX(0);
        opacity: 1;
    }

.notification-success {
    border-left-color: #22c55e;
}

.notification-error {
    border-left-color: #ef4444;
}

.notification-warning {
    border-left-color: #f59e0b;
}

.notification-info {
    border-left-color: var(--primary-color);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
}

.notification-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.notification-success .notification-icon {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.notification-error .notification-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.notification-warning .notification-icon {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
}

.notification-info .notification-icon {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
}

.notification-message {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

    .notification-close:hover {
        background: var(--bg-tertiary);
        color: var(--text-primary);
    }

/* ===========================
   Tablet Optimization (768px - 1024px)
   =========================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .card-body {
        padding: 1rem 0.875rem;
    }

    .mt-4 {
        margin-top: 1rem !important;
    }

    .mb-4 {
        margin-bottom: 1rem !important;
    }

    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }

    .form-control,
    .form-select {
        padding: 0.625rem 0.875rem;
        font-size: 0.9375rem;
    }

    .table {
        font-size: 0.875rem;
    }

        .table th,
        .table td {
            padding: 0.625rem 0.5rem;
        }
}

/* ===========================
   Enhanced Mobile Responsiveness
   =========================== */
@media (max-width: 768px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Mobile-friendly cards */
    .card {
        border-radius: var(--radius-md);
        margin-bottom: 0.75rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    /* Mobile table improvements - Reduced sizes */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }

    .table {
        font-size: 0.8125rem;
        min-width: 600px; /* Minimum width to maintain readability */
    }

        .table th,
        .table td {
            padding: 0.5rem 0.375rem;
            white-space: nowrap;
        }

        .table th {
            font-size: 0.6875rem;
            padding: 0.625rem 0.375rem;
        }

    /* Mobile-friendly buttons - Reduced sizes */
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        min-height: 40px; /* Touch target size */
    }

    .btn-sm {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
        min-height: 32px;
    }

    .btn-lg {
        padding: 8px 14px !important;
        font-size: 0.9375rem;
        min-height: 38px;
    }

    /* Mobile form improvements - Reduced sizes */
    .form-control,
    .form-select {
        font-size: 0.9375rem; /* Prevents zoom on iOS */
        padding: 0.625rem 0.75rem;
        min-height: 40px;
    }

    .form-floating > .form-control,
    .form-floating > .form-select {
        padding: 1.25rem 0.75rem 0.5rem;
        font-size: 0.9375rem;
    }

    .form-floating > label {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .form-label {
        font-size: 0.8125rem;
        margin-bottom: 0.375rem;
    }

    /* Mobile header improvements - Reduced sizes */
    h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    h2 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    h3 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }

    h4, h5, h6 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    /* Stack columns on mobile - Reduced spacing */
    .row {
        margin-left: -0.375rem;
        margin-right: -0.375rem;
    }

    .col-6,
    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-6,
    .col-12 {
        padding-left: 0.375rem;
        padding-right: 0.375rem;
        margin-bottom: 0.75rem;
    }

    /* Mobile filter improvements - Reduced spacing */
/*    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 0.75rem;
    }*/
/*
        .d-flex.justify-content-between > * {
            width: 100%;
        }*/

    /* Reduced margin utilities for mobile */
    .mt-4 {
        margin-top: 1rem !important;
    }

    .mb-4 {
        margin-bottom: 1rem !important;
    }

    .mt-3 {
        margin-top: 0.75rem !important;
    }

    .mb-3 {
        margin-bottom: 0.75rem !important;
    }

    .mb-2 {
        margin-bottom: 0.5rem !important;
    }

    /* Mobile modal improvements */
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    /* Notification mobile */
    .notification {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
        min-width: auto;
    }

    /* Alert improvements for mobile */
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }

    /* Text size reductions */
    p {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .text-muted {
        font-size: 0.8125rem;
    }

    small,
    .small {
        font-size: 0.75rem;
    }

    /* Badge mobile */
    .badge {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }
}

/* Tablet specific optimizations */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Reduce spacing utilities */
    .mt-5 {
        margin-top: 1.5rem !important;
    }

    .mb-5 {
        margin-bottom: 1.5rem !important;
    }

    .p-4 {
        padding: 1rem !important;
    }

    /* Alert tablet */
    .alert {
        padding: 0.875rem 1.125rem;
        font-size: 0.9375rem;
    }

    /* Text tablet */
    p {
        font-size: 0.9375rem;
    }

    .text-muted {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    /* Extra small devices - Further reduced sizes */
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    h1 {
        font-size: 1.25rem;
        margin-bottom: 0.375rem;
    }

    h2 {
        font-size: 1.125rem;
        margin-bottom: 0.375rem;
    }

    h3 {
        font-size: 1rem;
        margin-bottom: 0.375rem;
    }

    .table {
        font-size: 14px;
    }

        .table th,
        .table td {
            padding: 0.375rem 0.25rem;
        }

        .table th {
            font-size: 0.625rem;
            padding: 0.5rem 0.25rem;
        }

    .btn {
        margin-bottom: 0.375rem;
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

        .btn + .btn {
            margin-left: 0;
        }

    .btn-sm {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }

    .card-body {
        padding: 0.625rem;
    }

    .card {
        margin-bottom: 0.5rem;
    }

    .premium-loader {
        padding: 1.5rem 1rem;
    }

    /* Reduced spacing for extra small */
    .mt-4 {
        margin-top: 0.75rem !important;
    }

    .mb-4 {
        margin-bottom: 0.75rem !important;
    }

    .row {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }

    .col-6,
    .col-12,
    .col-md-3,
    .col-md-4,
    .col-md-6 {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
        margin-bottom: 0.5rem;
    }

    .form-control,
    .form-select {
        padding: 0.5rem 0.625rem;
        font-size: 0.875rem;
        min-height: 38px;
    }

    .form-floating > .form-control,
    .form-floating > .form-select {
        padding: 1rem 0.625rem 0.375rem;
    }

    .form-label {
        font-size: 0.75rem;
    }

    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .badge {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* ===========================
   Enhanced Premium UI Elements
   =========================== */

/* Improved card shadows and hover effects */
.card {
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

    .card:hover {
        border-color: rgba(102, 126, 234, 0.2);
        transform: translateY(-2px);
    }

/* Enhanced button styles */
.btn {
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

    .btn:active {
        transform: scale(0.98);
    }

/* Improved form controls */
.form-control:focus,
.form-select:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* Enhanced table styles */
.table-hover tbody tr {
    transition: all var(--transition-fast);
}

/*.table-hover tbody tr:hover {
    background: var(--bg-secondary);
    transform: scale(1.01);
}*/

/* Premium input focus states */
.form-control,
.form-select {
    transition: all var(--transition-normal);
}

    .form-control:invalid:not(:focus):not(:placeholder-shown),
    .form-select:invalid:not(:focus) {
        border-color: #ef4444 !important;
        background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNlZjQ0NDQiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1jaXJjbGUtYWxlcnQtaWNvbiBsdWNpZGUtY2lyY2xlLWFsZXJ0Ij48Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCIvPjxsaW5lIHgxPSIxMiIgeDI9IjEyIiB5MT0iOCIgeTI9IjEyIi8+PGxpbmUgeDE9IjEyIiB4Mj0iMTIuMDEiIHkxPSIxNiIgeTI9IjE2Ii8+PC9zdmc+");
        background-repeat: no-repeat;
        background-position: right 0.75rem center;
        background-size: 1rem 1rem;
    }

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better focus visibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Touch-friendly targets on mobile */
@media (max-width: 768px) {
/*    a, button, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }*/

    .table-hover tbody tr {
        padding: 1rem 0;
    }
}

/* Improved spacing utilities */
.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

/* Enhanced alert styles */
.alert {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-sm);
}

/* Premium shadow utilities */
.shadow-premium {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Smooth page transitions */
main {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Additional Premium Utilities
   =========================== */

/* Font Awesome integration */
.fas, .fa, .far, .fab, .fa-solid, .fa-regular, .fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro", "Font Awesome 5 Brands" !important;
    font-weight: 900;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.fa-solid, .fas {
    font-weight: 900;
}

.fa-regular, .far {
    font-weight: 400;
}

.fa-brands, .fab {
    font-weight: 400;
}

/* Additional spacing utilities */
.fw-semibold {
    font-weight: 600;
}

.text-uppercase {
    text-transform: uppercase;
}

.small {
    font-size: 0.875rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Responsive display utilities */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.d-table {
    display: table !important;
}

.d-table-cell {
    display: table-cell !important;
}

.d-inline {
    display: inline !important;
}

.d-inline-block {
    display: inline-block !important;
}

@media (min-width: 576px) {
    .d-sm-inline {
        display: inline !important;
    }

    .d-sm-block {
        display: block !important;
    }

    .d-sm-none {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .d-md-block {
        display: block !important;
    }

    .d-md-none {
        display: none !important;
    }

    .d-md-table-cell {
        display: table-cell !important;
    }
}

@media (min-width: 992px) {
    .d-lg-table-cell {
        display: table-cell !important;
    }
}

/* Badge improvements */
.badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.bg-primary {
    background: var(--primary-gradient) !important;
    color: white !important;
}

/* Improved form labels */
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Enhanced button groups */
.btn-group {
    display: inline-flex;
    gap: 0.5rem;
}

/* Improved card headers */
.card-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--bg-tertiary);
    padding: 1rem 1.5rem;
    font-weight: 600;
}

/* Better table cell padding */
.table td,
.table th {
    vertical-align: middle;
}

.table td {
    border-bottom: 0 !important;
    border-width: 0 !important;
}

.table tr:first-child td {
    padding-top: 20px !important;
}

/* Improved empty states */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Smooth hover transitions for all interactive elements */
a, button, input, select, textarea {
    transition: all var(--transition-fast);
}

    /* Better focus states */
    a:focus-visible,
    button:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }

/* Improved scrollbar (webkit browsers) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--text-secondary);
    }

/* Loading skeleton animation */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient( 90deg, var(--bg-secondary) 0px, var(--bg-tertiary) 40px, var(--bg-secondary) 80px );
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* Premium shadows */
.shadow-premium {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Better border radius consistency */
.rounded {
    border-radius: var(--radius-md) !important;
}

.rounded-lg {
    border-radius: var(--radius-lg) !important;
}

/* ===========================
   Autocomplete Styles with Dropdown
   =========================== */
.autocomplete-container {
    position: relative;
    width: 100%;
}

.autocomplete-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

    .autocomplete-input-wrapper .form-control {
        padding-right: 2.5rem; /* Space for dropdown button */
    }

.autocomplete-toggle-btn {
    position: absolute;
    right: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

    .autocomplete-toggle-btn:hover {
        background: var(--bg-tertiary);
        color: var(--text-primary);
    }

    .autocomplete-toggle-btn.active {
        color: var(--primary-color);
        transform: translateY(-50%) rotate(180deg);
    }

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 2px solid var(--bg-tertiary);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: -2px;
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-primary);
    border-bottom: 1px solid var(--bg-tertiary);
}

    .autocomplete-item:last-child {
        border-bottom: none;
    }

    .autocomplete-item:hover,
    .autocomplete-item.active {
        background: var(--bg-secondary);
        color: var(--primary-color);
    }

.autocomplete-no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

.autocomplete-footer {
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-top: 1px solid var(--bg-tertiary);
}

/* Dark theme autocomplete */
body.theme-dark .autocomplete-dropdown {
    background: var(--bg-primary);
    border-color: var(--bg-tertiary);
}

body.theme-dark .autocomplete-item {
    color: var(--text-primary);
    border-bottom-color: var(--bg-tertiary);
}

    body.theme-dark .autocomplete-item:hover,
    body.theme-dark .autocomplete-item.active {
        background: var(--bg-secondary);
        color: var(--primary-color);
    }

body.theme-dark .autocomplete-toggle-btn {
    color: var(--text-secondary);
}

    body.theme-dark .autocomplete-toggle-btn:hover {
        background: var(--bg-tertiary);
        color: var(--text-primary);
    }

body.theme-dark .autocomplete-footer {
    background: var(--bg-secondary);
    border-top-color: var(--bg-tertiary);
}

/* ===========================
   Summary Card Styles
   =========================== */
.summary-icon {
    font-size: 1.25rem;
}

    .summary-icon.bg-primary {
        background: var(--primary-gradient) !important;
    }

    .summary-icon.bg-success {
        background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    }

    .summary-icon.bg-info {
        background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    }

/* Mobile summary adjustments */
@media (max-width: 768px) {
    .summary-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }

    #summarySection .h4 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .summary-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.875rem !important;
    }

    #summarySection .h4 {
        font-size: 1.125rem;
    }
}


/********Custom Styles**********/

.detail-header .left h2 {
    color: var(--primary-color);
    font-weight: 700;
}

.detail-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
}

.form-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
}

.detail-card-content label {
    font-size: 34px;
    font-weight: 700;
}

.detail-card-title {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

    .detail-card-title .icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #e3e4ff;
        border-radius: 50%;
        color: var(--primary-color);
    }

.detail-card-content {
    padding-left: 3px;
}

.progress-bar.bg-success {
    background: var(--primary-gradient) !important;
}

.badge {
    border: 1px solid #e9e9e9;
    color: var(--primary-color) !important;
    padding: 6px 12px !important;
}

.form-control {
    padding: 12px 34px 12px 11px !important;
    border-radius: 4px !important;
    border: 1px solid #E0E5F2 !important;
}

form label, label.form-label {
    margin-bottom: 10px !important;
    color: var(--primary-color) !important;
    font-weight: 500 !important;
    margin-left: 3px !important;
}

table tr td{
    background: unset !important;
    background-color: unset !important;
}

table tr td:first-child {
    color: var(--text-primary);
    font-weight: 600;
}

table thead th {
    color: var(--primary-color) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: capitalize;
}

span.badge.bg-warning {
    border-radius: 30px;
    color: #ffffff;
}

.badge.bg-secondary {
    border-radius: 30px;
    color: #ffffff !important;
}

.badge.bg-success {
    border-radius: 30px !important;
    color: #ffffff !important;
}

.badge.bg-danger {
    border-radius: 30px !important;
    color: #ffffff !important;
}

table td .btn {
    font-size: 14px !important;
    padding: 8px 18px !important;
    border-radius: 4px !important;
}

.summary-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9e9e9;
}

.summary-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #e3e4ff;
    border-radius: 50%;
    color: #4318FF;
}

.summary-content .summary-title {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 2px;
    font-weight: 600;
}

.summary-content .summary-desc {
    font-weight: 700;
    font-size: 24px;
}

.table thead, .table thead th {
    background: #fafafa !important;
    background-color: #fafafa !important;
    padding-bottom: 20px;
}

.table tbody tr:last-child td {
    border-bottom-width: 0 !important;
}

.badge.bg-primary {
    color: #ffffff !important;
    border-radius: 30px;
}

.left.back-link {
    display: flex;
    align-items: center;
    column-gap: 14px;
}

    .left.back-link h2 {
        margin-bottom: 0;
    }

    .left.back-link .btn-outline-primary {
        padding: 7px !important;
        border-radius: 14px !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

.form-control.is-valid, .was-validated .form-control:valid {
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM0MmYwNDgiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1jaXJjbGUtY2hlY2staWNvbiBsdWNpZGUtY2lyY2xlLWNoZWNrIj48Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCIvPjxwYXRoIGQ9Im05IDEyIDIgMiA0LTQiLz48L3N2Zz4=) !important;
}

.common-header {
    padding: 14px 20px;
    border-bottom: 1px solid #F0F0F0;
    margin-bottom: 20px;
    background: #ffffff;
}

.graph-content {
    padding: 0 20px;
    margin-bottom: 50px;
}

.br{
    border-right: 1px solid #e9e9e9;
}

.table thead th{
    min-width: 180px !important;
}

#performanceChart {
    width: 320px !important; /* change width */
    height: 350px !important; /* change height */
    margin: 0 auto; /* center */
}

hr{
    border-top: 1px solid #e9e9e9 !important;
    opacity: unset !important;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 0;
    color: #6B7280;
}

.empty-state .empty-icon {
    width: 44px;
    height: 44px;
    background: #EEF2FF;
    color: #4F46E5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 10px;
}

.empty-state h6 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.empty-state p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6B7280;
}

#selectedDate {
    padding: 8px 18px !important;
    font-size: 14px;
}
.profile-email span {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
    cursor: pointer;
}

#tableLoader, #chartLoader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
}

@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1230px !important;
    }
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1750px !important;
    }
}

@media screen and (max-width: 1399.98px){
    #performanceChart {
        width: 280px !important;
        height: 300px !important;
        margin: 0 auto;
    }

    .profile-card .card-content{
        gap: 1rem;
    }

    .profile-email {
        font-size: 16px;
    }
}

@media screen and (max-width: 991.98px) {
    #performanceChart {
        width: 240px !important;
        height: 280px !important;
        margin: 0 auto;
    }

    .br {
        border-right: none;
    }
}

@media screen and (max-width: 767.98px) {
/*    .detail-header .left {
        text-align: center;
    }*/

    .btn {
        font-size: 14px !important;
    }

    .form-control {
        padding: 12px 18px !important;
        font-size: 14px !important;
    }

    .summary-icon svg {
        width: 18px;
        height: 18px;
    }

    table thead th {
        font-size: 14px !important;
    }

    table td .btn {
        font-size: 13px !important;
        padding: 5px 10px !important;
        border-radius: 10px !important;
        text-align: center !important;
    }

    .autocomplete-toggle-btn {
        display: none;
    }

    .right {
        justify-content: flex-end;
        display: flex;
    }

    .dashboard-header{
        height: 250px;
        margin-bottom: 2rem;
    }

    .add-icon{
        width: 36px !important;
    }

    .dashboard-card{
        padding: 1rem;
    }

    .profile-card .card-content{
        gap: 1rem;
    }

    input[type="date"] {
        padding-right: 30px !important;
    }

    .row {
        --bs-gutter-x: .5rem !important;
    }

    .btn{
        width: max-content !important;
    }

    .autocomplete-item{
        font-size: 14px;
    }
    .summary-content .summary-desc{
        font-size: 20px;
    }
    .card-title{
        font-size: 18px;
    }
    .filter-select {
        width: 140px !important;
    }
}


/*********Procard New Theme********/

.profile-card {
    min-width: 362px;
    padding: 20px 16px;
    background: #F5F5F5;
    border-right: 1px solid #DDDDDD;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: scroll;
}

.profile-card::-webkit-scrollbar{
    display: none;
}

.dashboard-main {
    padding-left: 362px;
}

.dashboard-content{
    display: flex;
}

.profile-card .card-content {
    border-bottom: 1px solid #DDDDDD;
    padding-bottom: 20px;
}

.profile-detail-list {
    padding-top: 20px;
    border-bottom: 1px solid #DDDDDD;
}

.profile-detail-list-item {
    margin-left: 4px;
    margin-bottom: 24px;
}

.profile-icon-wrapper svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

.profile-icon-wrapper {
    display: flex;
    column-gap: 5px;
    align-items: center;
    margin-bottom: 5px;
}

    .profile-icon-wrapper span {
        font-size: 14px;
        font-weight: 500;
    }

.profile-data {
    font-size: 1rem;
    font-weight: 600;
}

.header-wrapper {
    display: flex;
    align-items: center;
    column-gap: 10px;
    margin-bottom: 20px;
}
    .header-wrapper h4 {
        font-weight: 700;
        font-size: 18px;
        margin-bottom: 0;
    }

.inter-ft{
    font-family: "Inter", sans-serif !important;
}

.text_in-use {
    color: #13A10E;
}
.detail-cards {
    padding: 0 20px;
}

.back-to-btn {
    width: 34px;
    height: 34px;
    background: #fafafa;
    border: 1px solid #d5d5d5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    border-radius: 4px;
}


@media screen and (max-width: 767.98px) {
    .dashboard-content{
        flex-direction: column;
    }

    .profile-card {
        position: relative;
        width: 100%;
        border-right: none;
        min-height: auto;
    }

    .dashboard-main{
        padding-left: 0;
    }

    .graph-content {
        margin-bottom: 10px;
    }

}

#fab-container {
    position: fixed;
    bottom: 2rem;
    right: 50%;
    z-index: 1050;
    background: white;
    padding: 0.375rem;
    border-radius: 4px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    transition: width 0.3s ease-in-out;
    overflow: hidden;
    transform: translateX(50%);
}

    /* Expand on hover or when checked in (handled by JS/CSS combination) */
/*    #fab-container:hover {
        width: auto;
        padding-right: 1rem;
    }*/

    /* State: Checked In (Always expanded slightly to show timer) */
    #fab-container.checked-in {
        width: auto;
/*        padding-right: 1rem;*/
    }

/* The Main Icon Circle */
.fab-icon-circle {
    height: 44px;
    /* Start as a circle */
    min-width: 44px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smooth spring-like animation */
    padding: 0;
    background: #5B5FC7;
}

.checkInBtn, .checkOutBtn {
    height: 44px;
    min-width: 44px;
    padding: 0 !important;
    margin-bottom: 0;
}

.checkInBtn svg, .checkOutBtn svg{
    width: 20px;
}

/* State: Checked In (Expand the circle to a pill for the timer) */
#fab-container.checked-in .fab-icon-circle {
    min-width: 120px; /* Ensure enough space for timer */
    padding: 0 1.25rem;
}

.timer-display {
    display: none; /* Hidden by default */
    /* Monospace stack for stable numbers */
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-variant-numeric: tabular-nums; /* Ensures numbers are same width */
    font-weight: 600;
    font-size: 0.95rem;
    margin-left: 0.75rem;
    white-space: nowrap;
    letter-spacing: 0.025em;
}

.total-hours-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: #f3f4f6;
    border-radius: 4px;
    font-size: 0.875rem;
    min-height: 44px;
}

.total-hours-label {
    color: #6b7280;
    font-weight: 500;
}

.total-hours-value {
    color: #111827;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* FAB Options (The buttons inside) */
.fab-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* opacity: 0; */
    margin-left: 0.5rem;
    /* transform: translateX(20px); */
    transition: all 0.3s ease;
    white-space: nowrap;
}

.toast-container {
    position: fixed !important;
    top: 5rem !important;
    right: 2rem !important;
    z-index: 9999 !important;
    pointer-events: all !important;
}

    .toast-container .alert {
        margin-bottom: 16px !important;
    }

.alert-dismissible .btn-close {
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    z-index: 2 !important;
    padding: 1.25rem 1rem !important;
    background-size: 25% !important;
}

    .alert-dismissible .btn-close:focus {
        box-shadow: none !important;
    }

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

@@media screen and (max-width: 767.98px) {
    #btnCheckOut, #btnCheckIn {
        font-size: 0 !important;
        gap: 0;
    }

    #fab-container {
        width: auto;
        right: 50%;
        transform: translateX(50%);
    }
}