/*
*******************************************
*******************************************

** - Default CSS

*******************************************
*******************************************
*/

/*================================================
Default CSS
=================================================*/

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: "Josefin Sans", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #1e293b;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none !important;
}

:active {
    outline: none;
    box-shadow: none;
}

:focus {
    outline: none;
    box-shadow: none;
}

::-webkit-scrollbar {
    width: 5px;
    height: 4px;
    cursor: pointer;
}

::-webkit-scrollbar-track {
    background-color: #fff;
    cursor: pointer;
}

::-webkit-scrollbar-thumb {
    background-color: #d9ecff;
    border-radius: 10px;
    cursor: pointer;
}

:root {
    scroll-padding-top: 80px;
}

.form-control {
    outline: none !important;
    box-shadow: none !important;
    padding-left: 20px;
}

.form-control:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Main Content */
.main-content {
    margin-left: 260px !important;
    padding: 1rem 1.5rem !important;
    transition: margin-left 0.3s ease;
}

/*================================================
    client Login Page CSS
=================================================*/

.client-login {
    background: #f5f7fb;
    overflow-x: hidden;
}

.client-login .container-fluid {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.client-login .login-card {
    height: 700px;
    border-radius: 20px;
    border: none;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 2;
    background: #fff;
}

.client-login .left-panel {
    background: #ffffff;
    padding: 30px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.client-login .logo {
    display: grid;
    place-items: center;
    padding-bottom: 40px;
}

.client-login .logo img {
    width: 150px;
    height: 80px;
    object-fit: contain;
}

.client-login .subtitle {
    color: #6c757d;
    margin-bottom: 35px;
}

.client-login .form-control {
    border-radius: 30px;
    padding: 14px 22px;
}

.client-login .btn-login {
    background: linear-gradient(135deg, #6a11cb, #2575fc, #6a11cb);
    color: #fff;
    font-weight: 600;
    border-radius: 30px;
    padding: 14px;
    border: none;
}

.client-login .btn-login:hover {
    background: linear-gradient(135deg, #2575fc, #6a11cb, #2575fc);
    color: #fff;
}

.client-login .form-control {
    border: none;
    outline: none;
    box-shadow: none;
    background: #f1f3f6;
    border-radius: 30px;
    padding: 14px 22px;
    transition: box-shadow 0.3s ease;
}

.client-login .form-control:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(17, 128, 231, 0.4);
    background: #fff;
}

.client-login .right-panel {
    position: relative;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

.client-login .login-right-side-img {
    position: relative;
    width: 100%;
    height: 100%;
}

.client-login .login-right-side-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.client-login .login-right-side-img:hover img {
    transform: scale(1.12);
}

.client-login .login-right-side-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.client-login .admin-overlay-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 40px;
    text-align: center;
}

.client-login .admin-overlay-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px #000;
}

.client-login .admin-overlay-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px #000;
}

.client-login .btn-admin-login {
    padding: 14px 36px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.client-login .btn-admin-login:hover {
    background: transparent;
    border: 2px solid #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.client-login .login-right-side-img::after {
    z-index: 1;
}

.client-login .login-right-side-img img {
    z-index: 0;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    font-size: 18px;
}

.toggle-password:hover {
    color: #1f83d4ff;
}

@media (max-width: 1200px) {
    .client-login .login-card {
        height: 650px;
    }
}

@media (max-width: 992px) {
    .client-login .login-card {
        height: auto;
    }

    .client-login .right-panel {
        display: none;
    }

    .client-login .left-panel {
        padding: 40px;
    }
}

@media (max-width: 576px) {
    .client-login .left-panel {
        padding: 30px 25px;
    }

    .client-login h4 {
        font-size: 1.3rem;
    }

    .client-login .form-control,
    .client-login .btn-login {
        padding: 12px 18px;
    }
}

/*================================================
    Navbar Page CSS
=================================================*/

.notification-bell {
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #dc3545;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px 0px 6px;
    border-radius: 50px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.navbar-icon i:hover {
    width: 40px;
    height: 40px;
    color: #fff !important;
    display: grid;
    place-items: center;
    background: linear-gradient(90deg, #a02bc4 0%, #294ae0 100%) !important;
    cursor: pointer;
    border-radius: 50%;
    font-size: 20px !important;
}

.user-menu {
    position: absolute;
    top: 55px;
    right: 0;
    width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    display: none;
    padding: 10px 0;
    z-index: 999;
}

.user-menu a {
    display: block;
    padding: 5px 15px;
    text-decoration: none;
    color: #333;
}

.user-menu a:hover {
    background: linear-gradient(90deg, #a02bc4 0%, #294ae0 100%);
    color: #fff;
}

.user-menu a i {
    color: rgb(182, 182, 182);
    font-size: 15px;
}

.user-menu a:hover i {
    color: #fff;
}

.dropdown-menu {
    background: #fff;
    border: none !important;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    z-index: 1000;
    margin-top: 12px;
    right: 0px;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 14px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}

.dropdown-header {
    padding: 15px 16px !important;
    font-weight: bold;
    background: #f8f9fa;
    font-size: 16px !important;
    position: static;
}

.dropdown-body {
    padding: 12px 16px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.95rem;
}

.notification-item,
.announcement-item {
    transition: background-color 0.15s;
}

.notification-item:hover,
.announcement-item:hover {
    background-color: #f8f9fa;
}

.notification-item p,
.announcement-item p {
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (max-width: 576px) {
    .dropdown-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

.top-navbar {
    height: 74px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 0 2rem !important;
    border-radius: 7px;
}

.search-input {
    padding-left: 20px;
}

.user-avatar {
    background-color: rgb(238, 245, 252);
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.user-avatar img {
    width: 22px;
    height: 22px;
}

/* Cards */
.card-neat {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-neat:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: linear-gradient(90deg, #f8fafc, #f1f5f9);
    padding: 1.1rem 1.5rem !important;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.form-control {
    outline: none !important;
    box-shadow: none !important;
    padding-left: 20px;
}

.form-control:focus {
    outline: none !important;
    box-shadow: none !important;
}

@media (max-width: 992px) {
    .top-navbar {
        padding: 0 1.25rem !important;
    }
}

@media (max-width: 576px) {
    .top-navbar .d-flex.gap-3 {
        gap: 1rem !important;
    }
}

/*================================================
    SideBar Page CSS
=================================================*/

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background: #ffff;
    border-right: 1px solid #e2e8f0;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-header {
    height: 74px;
    background: linear-gradient(90deg, #a02bc4 0%, #294ae0 100%);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 1.5rem !important;
    font-weight: bold !important;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.sidebar ul li {
    color: #475569 !important;
}

.sidebar-content {
    flex: 1;             
    overflow-y: auto;  
}

.sidebarDesign-img {
    width: 100%;
     margin-top: 28px;  
}

.sidebarDesign-img img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.nav-link {
    color: #475569 !important;
    padding: 0.9rem 1.5rem !important;
    display: flex;
    align-items: center;
    gap: 14px !important;
    transition: all 0.2s;
    text-decoration: none;
}

.nav-link i {
    padding-right: 10px;
    color: #294ae0;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1 !important;
    border-left: 4px solid #6366f1;
}

@media (max-width: 1199px) {
    .sidebar {
        width: 240px;
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }
}

/*================================================
    Client Dashboard Page CSS
=================================================*/

.expired-item {
    padding: 1rem !important;
    border-radius: 10px;
    background: #fff7ed;
    border-left: 5px solid #f59e0b;
    margin-bottom: 1rem;
}

.custom-table {
    table-layout: fixed;
    width: 100%;
}

.dashboard-grid {
    display: flex;
    flex-wrap: wrap;
}

.dashboard-grid>div {
    display: flex;
}

.table-responsive table thead tr th {
    font-size: 12px !important;
}

.table-responsive table tbody tr td {
    font-size: 12px !important;
}

.custom-table,
.custom-table2 {
    height: 350px;
}

.card-body {
    overflow-y: auto;
}

.card-body .table-responsive {
    height: 350px;
    overflow-y: auto;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
}

.card-body .table-responsive::-webkit-scrollbar {
    height: 12px;
}

.card-body .table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.card-body .table-responsive::-webkit-scrollbar-thumb {
    background: #64748b;
    border-radius: 10px;
    border: 3px solid #f1f5f9;
}

/* Sticky header */
.custom-table thead th,
.custom-table2 thead th {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 2;
}

/* Custom Table 1 */
.custom-table th:nth-child(1),
.custom-table td:nth-child(1) {
    width: 8%;
    text-align: center;
}

.custom-table th:nth-child(2),
.custom-table td:nth-child(2) {
    width: 52%;
}

.custom-table th:nth-child(3),
.custom-table td:nth-child(3) {
    width: 20%;
}

.custom-table th:nth-child(4),
.custom-table td:nth-child(4) {
    width: 16%;
}

.custom-table td {
    word-wrap: break-word;
}

/* Custom Table 2 */
.custom-table2 th:nth-child(1),
.custom-table2 td:nth-child(1) {
    width: 8%;
    text-align: center;
}

.custom-table2 th:nth-child(2),
.custom-table2 td:nth-child(2) {
    width: 40%;
}

.custom-table2 th:nth-child(3),
.custom-table2 td:nth-child(3) {
    width: 20%;
}

.custom-table2 th:nth-child(4),
.custom-table2 td:nth-child(4) {
    width: 16%;
}

.custom-table2 th:nth-child(5),
.custom-table2 td:nth-child(5) {
    width: 16%;
}

/* Custom Table 3 */
.custom-table3 th:nth-child(1),
.custom-table3 td:nth-child(1) {
    width: 70%;
    padding-left: 20px;
}

.custom-table3 th:nth-child(2),
.custom-table3 td:nth-child(2) {
    width: 30%;
}

/* Custom Table 4 */
.custom-table4 th:nth-child(1),
.custom-table4 td:nth-child(1) {
    width: 60%;
    padding-left: 20px !important;
}

.custom-table4 th:nth-child(2),
.custom-table4 td:nth-child(2) {
    width: 20%;
}

.custom-table4 th:nth-child(3),
.custom-table4 td:nth-child(3) {
    width: 20%;
    text-align: center;
}

.help-card,
.ticket-card {
    height: 410px;
    display: flex;
}

.help-card .card-body,
.ticket-card .card-body {
    display: flex;
    flex-direction: column;
}

.help-card img,
.ticket-card img {
    max-height: 120px;
    object-fit: contain;
}

@media (max-width: 1199px) {
    .main-content {
        margin-left: 240px !important;
    }
}

@media (max-width: 992px) {

    .main-content {
        margin-left: 0 !important;
    }
}

@media (max-width: 768px) {
    .task-due-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .card-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .btn-group {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .task-due-grid {
        grid-template-columns: 1fr !important;
    }

    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }

    .main-content {
        padding: 1rem 0.5rem !important;
    }

    .table-responsive table tbody tr td {
        font-size: 10px;
    }
}