﻿body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    padding-top: 60px
}

/*-----------------------Header & footer start----------------------------------*/
.header {
    background-color: #0078d4;
    font-size: 13px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: #fff;
    z-index: 1030;
    height:50px;
}

.footer {
    background-color: #484848;
    text-align: center;
    width: 100%;
    height: 30px;
    line-height: 25px;
    z-index: 1030;
}

.footer-text {
    color: #ffffff;
    font-size: 11px;
    opacity: 0.6;
}

.content-area {
    position: absolute;
    top: 50px;
    bottom: 30px;
    left: 0;
    right: 0;
    overflow-y: auto;
    background: linear-gradient(135deg, #f2f6fc, #dbe9ff); 
}
/*-----------------------Header & footer end----------------------------------*/





/*-----------------------Ligin page start----------------------------------*/
.custom-login-wrapper {
    position: absolute;
    top: 50px; /* header height */
    bottom: 30px; /* footer height */
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f2f6fc, #dbe9ff);
    padding: 15px;
    box-sizing: border-box;
    overflow: auto;
}


    .custom-login-wrapper .login-box {
        width: 100%;
        max-width: 500px;
        padding: 40px;
        background-color: #fff;
        border-radius: 15px;
        box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.15);
        max-height: 90vh;
        overflow-y: auto;
    }

.custom-login-wrapper .login-show {
    color: #333;
}

.custom-login-wrapper .btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 10px 16px;
}

.custom-login-wrapper .input-group-text {
    background-color: #f0f0f0;
    border-radius: 10px 0 0 10px;
}

.custom-login-wrapper .form-control {
    border-radius: 0 10px 10px 0;
}

.custom-login-wrapper .alert {
    border-radius: 10px;
}

/*-----------------------Ligin page end----------------------------------*/


/*-----------------------Left menu & main content start----------------------------------*/
.sidebar {
    width: 250px;
    min-width: 250px;
    background-color: #f8f9fa;
    overflow-y: auto;
    transition: all 0.3s ease;
    padding: 10px 0;
    border-right: 1px solid #ddd;
    position: relative;
    z-index: 1020;
}

    /* Sidebar hidden by default on small screen */
    .sidebar.closed {
        transform: translateX(-100%);
        position: fixed;
        top: 50px;
        left: 0;
        height: calc(100vh - 50px);
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    }

/* Mobile overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 900;
}

/* Main content area */

.main-area {
    transition: margin-left 0.9s ease;
    position: relative;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    flex-grow: 1;
    overflow-y: auto;
    background: linear-gradient(135deg, #f2f6fc, #dbe9ff);
    margin-left: 250px;
}

/* When sidebar is closed, push main content */
.sidebar.closed ~ .main-area {
    margin-left: 0;
}

    .sidebar ul {
        list-style: none;
        padding-left: 0;
        margin: 0;
    }

    .sidebar li {
        padding: 8px 16px;
    }

    .sidebar a {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #333;
        text-decoration: none;
        font-size: 14px;
        transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
        padding: 6px 10px;
        border-radius: 6px;
    }

        .sidebar a:hover {
            background-color: #e0f0ff;
            color: #0056b3;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
            transform: scale(1.01);
        }

    .sidebar .nav-item.active a {
        background-color: #d0eaff;
        color: #003d80;
        font-weight: 600;
        border-radius: 6px;
    }


    .sidebar img.imageIconM {
        width: 20px;
        height: 20px;
    }
    .sidebar a img.imageIconM {
        transition: filter 0.3s ease;
    }

    .sidebar a:hover img.imageIconM {
        filter: brightness(0.5) saturate(2);
    }





/* Section Header Block */
.menu-section {
    margin-top: 10px;
}

.sidebar-section {
    display: flex;
    align-items: center;
    height: 32px;
    padding: 0 10px;
    margin-top: 10px;
}

.sidebar-divider {
    border-bottom: 1px solid #bfbfbf;
    flex: 1;
    height: 0;
}

    .sidebar-divider:first-of-type {
        margin-right: 5px;
        max-width: 8px;
    }

    .sidebar-divider:last-of-type {
        margin-left: 5px;
    }

.sidebar-fav-icon img {
    width: 16px;
    height: 16px;
}

.sidebar-myfavorites {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 10px;
    margin-left: 10px;
}


#sidebarToggle {
    display: inline-block;
}

/* Responsive behavior  desktop */
@media (min-width: 769px) {
    .main-area {
        margin-left: 0px;
    }
}

/* Responsive behavior  mobile */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 50px;
        left: -260px;
        height: calc(100vh - 50px);
        z-index: 1020;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    }

        .sidebar.open {
            left: 0;
        }

    .main-area {
        margin-left: 0 !important;
    }

    .mobile-overlay {
        display: block;
    }
}

/*-----------------------Left menu & main content----------------------------------*/




/*-----------------------Main content start----------------------------------*/
.card {
    border: none;
    background-color: #ffffff;
}

.card-body {
    min-height: calc(100vh - 160px);
    min-width: calc(100vh - 250px);
}

.card-header {
    font-weight: 600;
    font-size: 16px;
    border-bottom: none;
    background: linear-gradient(to right, #cde4ff, #ffffff);
    min-height: 60px;
    border-top-left-radius:4px;
}

.table th, .table td {
    vertical-align: middle;
    font-size: 14px;
}

.badge {
    font-size: 12px;
    padding: 6px 10px;
}

.input-group > .form-control,
.input-group > .form-select {
    min-width: 80px;
}

/*-----------------------Main content end----------------------------------*/





/*-----------------------Dashboard start----------------------------------*/
.tile {
    flex: 0 0 auto;
    min-width: 200px;
    max-width: 250px;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-right: 1rem;
    color: #000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.tile-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tile-content {
    display: flex;
    align-items: center;
}

.tile-data {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.tile-box {
    transition: transform 0.2s ease;
}

    .tile-box:hover {
        transform: scale(1.03);
        cursor: pointer;
    }

.dashboard-scroll::-webkit-scrollbar {
    height: 8px;
}

.dashboard-scroll::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}

    .dashboard-scroll::-webkit-scrollbar-thumb:hover {
        background: #888;
    }


/*--Grid--*/
.candidate-table-container {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background-color: #ffffff;
}

.candidate-table {
    width: 100%;
    border-collapse: collapse;
}

    .candidate-table thead {
        position: sticky;
        top: 0;
        background-color: #0d6efd;
        color: #fff;
        z-index: 1;
    }

        .candidate-table thead th {
            font-weight: 600;
            padding: 0.75rem;
            white-space: nowrap;
        }

    .candidate-table tbody td {
        padding: 0.65rem;
        vertical-align: middle;
        font-size: 0.95rem;
    }

    .candidate-table tbody tr:hover {
        background-color: #f1f9ff;
    }

    .candidate-table tbody tr:nth-child(odd) {
        background-color: #f8f9fa;
    }

    .candidate-table tbody tr:nth-child(even) {
        background-color: #ffffff;
    }

/* Mobile-friendly column responsiveness */
@media (max-width: 768px) {
    .candidate-table thead {
        display: none;
    }

    .candidate-table,
    .candidate-table tbody,
    .candidate-table tr,
    .candidate-table td {
        display: block;
        width: 100%;
    }

        .candidate-table tr {
            margin-bottom: 1rem;
            border: 1px solid #dee2e6;
            border-radius: 0.5rem;
            padding: 0.75rem;
            background-color: #fff;
        }

        .candidate-table td {
            text-align: right;
            padding-left: 50%;
            position: relative;
        }

            .candidate-table td::before {
                content: attr(data-label);
                position: absolute;
                left: 0.75rem;
                width: 45%;
                padding-right: 1rem;
                white-space: nowrap;
                font-weight: 600;
                text-align: left;
                color: #495057;
            }
}


.chart-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.chart-header {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.chart-body {

    min-height: 550px;
    overflow: auto;
}

.e-panel-content {
    height: 100%;
    overflow: auto;
    padding: 0 !important;
}

    .e-panel-content .e-control.e-chart {
        height: 100% !important;
        width: 100% !important;
    }



/*-----------------------Dashboard end----------------------------------*/



/*-----------------------Dialog/Model start----------------------------------*/

/* Dialog Styling */
.e-dialog {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-family: 'Segoe UI', sans-serif;
}

/* Title */
.e-dlg-header-content {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    font-size: 16px;
}


.e-dialog .e-dlg-header-content {
    background-color: #f1f1f1;
    border-radius: 4px !important;
}

.e-dialog .e-dlg-content {
    border-radius: 4px !important;
}




/* Form Label Styling */
.model-text-bold {
    font-weight: 600;
    font-size: 13px;
    color: #343a40;
}

.model-text {
    font-weight: 500;
    font-size: 13px;
    color: #007bff;
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* Input & Textarea */
.form-control, .form-control-sm, select {
    border-radius: 6px;
    border: 1px solid #ced4da;
    font-size: 14px;
    padding: 6px 10px;
    background-color: #fdfdfd;
}

.input-group-text {
    background-color: #e9ecef;
    border-radius: 6px 0 0 6px;
}

/* Buttons */
.btn-success {
    background-color: #28a745;
    border: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 20px;
    border-radius: 6px;
}

.btn-outline-secondary {
    font-size: 14px;
    padding: 6px 20px;
    border-radius: 6px;
}

/* Margin and Spacing Fix */
#dialogStatus .row {
    margin-bottom: 12px;
}

.icon-color-blue {
    color: #1a73e8; 
}

.icon-color-green {
    color: #2e7d32; 
}

.icon-color-gray {
    color: #6c757d; 
}

.icon-color-darkgray {
    color: #495057; 
}

.icon-color-red {
    color: #d32f2f; 
}

.icon-color-amber {
    color: #f9a825; 
}
/*-----------------------Dialog/Model end----------------------------------*/





/*-----------------------Loading start----------------------------------*/

#mainAreaOverlay {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 1s ease;
    pointer-events: none;
}

    #mainAreaOverlay.fade-out {
        opacity: 0;
        transition: opacity .5s ease;
        pointer-events: none;
    }
/*-----------------------Loading End----------------------------------*/


/*-----------------------Panel Collapsible start----------------------------------*/
.gradient-header {
    background: linear-gradient(to right, #f2f9ff, #cde4ff);
    font-weight: 600;
    border-bottom: 1px solid #ccc;
    color: #333;
}

    .gradient-header .collapse-icon,
    .gradient-header h6 {
        color: #3b3b3b;
    }

.panel {
    background-color: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.panel-title {
    font-size: 1rem;
    margin: 0;
}

.panel-body {
    background-color: #fcfcfc;
    padding: 15px;
}

    
.collapse-icon {
    transition: transform 0.3s ease;
}

    .collapse-icon.rotated {
        transform: rotate(180deg);
    }

.input-group .form-control {
    z-index: 1;
}

.input-group .btn-outline-secondary {
    z-index: 2;
}

/*-----------------------Panel Collapsible start----------------------------------*/


/*-----------------------Report start----------------------------------*/
.report-link {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .report-link:hover {
        background-color: #e9ecef;
        transform: translateY(-1px);
        text-decoration: none;
    }

    .report-link i {
        font-size: 1.1rem;
    }
/*-----------------------Report end----------------------------------*/


/*-----------------------Common start----------------------------------*/
.btn-align-fix {
    display: inline;
    align-items: center;
}

.btn-outline-light {
    border-color: #fff;
    color: #fff;
}

    .btn-outline-light:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }


.e-grid .e-headercell .e-filtermenudiv {
    background-color: #d6d8db; /* Bootstrap secondary gray */
    color: #fff;
    border-radius: 2px;
    padding: 2px 2px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease-in-out;
    border: 1px solid #c6c8ca;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

    .e-grid .e-headercell .e-filtermenudiv:hover {
        background-color: #c6c8ca; /* Darker gray on hover */
        cursor: pointer;
    }

    .e-grid .e-headercell .e-filtermenudiv .e-icon-filter {
        color: #fff; /* White funnel icon */
        font-size: 14px;
    }



/*-----------------------Common end----------------------------------*/


/*-----------------------Tag start----------------------------------*/
#tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 8px 10px;
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    #tags span.tag {
        position: relative;
        display: inline-block;
        background-color: #0d6efd;
        color: #fff;
        font-size: 13px;
        padding: 6px 30px 6px 12px;
        border-radius: 20px;
        margin: 2px;
        cursor: pointer;
        transition: background-color 0.2s ease-in-out;
    }

        #tags span.tag:hover {
            background-color: #0b5ed7;
        }

        #tags span.tag:after {
            content: "×";
            position: absolute;
            top: 50%;
            right: 8px;
            transform: translateY(-50%);
            width: 18px;
            height: 18px;
            background: rgba(255, 255, 255, 0.8);
            color: #0d6efd;
            font-size: 13px;
            font-weight: bold;
            line-height: 18px;
            text-align: center;
            border-radius: 50%;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
            cursor: pointer;
        }

    #tags input {
        border: none;
        background: transparent;
        padding: 6px;
        margin: 2px;
        font-size: 14px;
        outline: none;
        flex: 1;
        min-width: 100px;
    }
/*-----------------------Tag end----------------------------------*/

/*-----------------------AI animation Start----------------------------------*/
.ai-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
    font-family: 'Segoe UI', sans-serif;
}

/*
.ai-typing {
    color: #0d6efd;
    font-size: 15px;
    margin-bottom: 10px;
    border-right: 2px solid #0d6efd;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 2s steps(25), blink 0.6s step-end infinite alternate;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 50%
    }
}

@keyframes blink {
    50% {
        border-color: transparent
    }
}
*/

.ai-glow {
    width: 250px;
    height: 10px;
    background: linear-gradient(90deg, #0d6efd, #80d0ff, #0d6efd);
    border-radius: 5px;
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleX(0.5);
    }

    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

.ai-tokens {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

/*-----------------------AI animation end----------------------------------*/