:root {
    --primary-color: #FF8C42;
    --secondary-color: #2C3E50;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
    font-size: 12px !important;
}

#sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: #2C3E50;
    color: #fff;
    transition: all 0.3s ease;
    padding-top: 80px;
    overflow-y: auto;
}

#sidebar.closed {
    left: -260px;
}

#sidebar a {
    color: #fff;
    text-decoration: none;
    padding: 8px 20px;
    display: block;
}

#sidebar a:hover {
    background: rgba(255, 255, 255, 0.15);
}

#content {
    margin-left: 260px;
    padding-top: 70px;
    transition: all 0.3s ease;
}

#content.full {
    margin-left: 20px;
}

.admin-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 9999;
    border-bottom: 1px solid #f0f0f0;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 45px;
    transition: transform 0.3s ease;
}

.header-logo:hover img {
    transform: scale(1.05);
}

.page-title h4 {
    margin: 0;
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-right i {
    font-size: 1.4rem;
    color: #a0a0a0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-right i:hover {
    color: var(--primary-color);
}

.profile-img-btn {
    border: 2px solid transparent;
    background: none;
    padding: 3px;
    border-radius: 50%;
    transition: border-color 0.3s ease;
}

.profile-img-btn:hover {
    border-color: var(--primary-color);
}

.profile-img-btn img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.header-profile-dropdown .dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 15px;
    border-radius: 12px;
    overflow: hidden;
}

.header-profile-dropdown .dropdown-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
    padding: 20px;
    color: #fff !important;
}

.header-profile-dropdown .dropdown-item {
    padding: 12px 20px;
    font-weight: 500;
    color: #4a4a4a;
    transition: all 0.2s ease;
}

.header-profile-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    padding-left: 25px;
}

.header-profile-dropdown .dropdown-item.text-danger:hover {
    background-color: #fff5f5;
    color: #dc3545;
}

#toggleBtn {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

#sidebar.closed #toggleBtn {
    position: fixed;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: fit-content;
    border-radius: 0px 90px 90px 0px;
}

.ringchart {
    height: 260px;
    display: flex;
    justify-content: center;
}

.search-wrapper input {
    padding-left: 42px;
    font-size: 14px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 40%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 12px;
    z-index: 2;
    pointer-events: none;
}

.data-grid-card {
    background: white;
    border-radius: 5px;
    box-shadow: var(--card-shadow);
    width: 100%;
}

.empty-state {
    padding: 40px 0;
    font-size: 16px;
    color: #666;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table td,
table th {
    padding: 6px;
    vertical-align: middle;
    border: 1px solid #e9ecef;
}


table th {
    background: #2C3E50;
    color: white;
    text-align: center;
}

table tbody tr:hover {
    background: #f8f9fa;
    cursor: pointer;
}

.empty-state {
    padding: 35px 0;
    font-size: 16px;
    text-align: center;
    color: #666;
}

.module-badge {
    background: #fff3e6;
    color: #FF8C42 !important;
}

.action-btn {
    width: 25px;
    height: 25px;
    border-radius: 8px;
    margin: 0 0.25rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-edit {
    background: #e3f2fd;
    color: #2196f3;
}

.btn-edit:hover {
    background: #2196f3;
    color: white;
    text-decoration: none;
}

.btn-delete {
    background: #ffebee;
    color: #f44336;
}

.btn-delete:hover {
    background: #f44336;
    color: white;
}

.icon-add {
    background: #ff8c42b0;
    color: #fff;
}

.icon-add:hover {
    background: #FF8C42;
    color: white;
    text-decoration: none;
}

.btn-primary {
    background: #2C3E50 !important;
    border: none !important;
    height: 30px;
    width: 30px;
}

h2 {
    text-align: center;
}

a {
    text-decoration: none !important;
}

.btn-add {
    background: #FF8C42;
    padding: 6px 10px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    float: right;
    margin-left: 10px;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 140, 66, 0.4);
}

.toggle {
    cursor: pointer;
    font-weight: bold;
    text-align: center;
}

.hidden {
    display: none;
}

.form-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    max-width: 400px;
    margin: 50px auto;
}

.login-form-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
}

.login-page {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
}

.form-body {
    padding: 15px;
}

.form-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
    color: white;
    padding: 10px;
}

.form-title {
    font-weight: 700;
    margin: 0;
    font-size: 20px;
}

input,
textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
}

input:focus-visible,
textarea:focus-visible {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 66, 0.25);
    outline: unset;
}

.submit-btn {
    background: #FF8C42;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

.cancel-btn {
    background: #ff4242;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

img {
    width: 80px;
    height: auto;
    border-radius: 4px;
}

.f-right {
    float: right;
}

.bg-color {
    background: #2C3E50;
}

.vaidehi-logo {
    z-index: 1;
    width: 20%;
}

.vaidehi-logo img {
    width: 100%;
}

.radio-inline-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 16px;
}

.radio-inline-box {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
}

.radio-inline-box span {
    font-weight: 600;
    color: #0b2c4d;
    white-space: nowrap;
}

.radio-inline-box input[type="radio"] {
    margin: 0;
    transform: scale(1.1);
}

.radio-inline-box:hover {
    border-color: #FF8C42;
    background: #fff3e6;
}

.toast {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 10px;
    margin: 20px 0;
    display: none;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.card {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
}

.icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    margin: 0 auto 15px;
}

.background-orange {
    background: #ff8c42;
}

.st-btn {
    margin-top: 15px;
    display: inline-block;
    padding: 10px 22px;
    border-radius: 10px;
    background: var(--secondary-color);
    color: #fff;
    text-decoration: none;
}

.st-btn:hover {
    background: #395067;
    color: #fff;
}

.forgot {
    color: #000;
    text-align: center;
    margin-top: 12px;
}

.forgot a {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
}

.forgot a:hover {
    color: var(--primary-color);
}

.form-control {
    font-size: 12px !important;
}

.form-label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0px !important;
}

.module-checkbox {
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.module-checkbox:hover {
    background: #fff3e6;
    border-color: var(--primary-color);
}

.module-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    cursor: pointer;
}

.module-checkbox label {
    cursor: pointer;
    vertical-align: top;
}

.modules-container {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
}

.price-amount {
    font-weight: 600;
    color: var(--primary-color);
}


.thumbnail-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.video-title {
    font-weight: 600;
    color: var(--secondary-color);
}

.video-description {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.badge-custom {
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-published {
    background: #d4edda;
    color: #155724;
}

.badge-unpublished {
    background: #f8d7da;
    color: #721c24;
}


.btn-preview {
    background: #e8f5e9;
    color: #2e7d32;
}

.btn-preview:hover {
    background: #2e7d32;
    color: white;
    text-decoration: none;
}

.btn-toggle {
    background: #fff3e0;
    color: #ef6c00;
}

.btn-toggle:hover {
    background: #ef6c00;
    color: white;
}

.profile-img {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1;
}

.profile-img img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    float: inline-end;
}

.dropdown-header {
    background-color: #2C3E50;
    color: white !important;
}

.dropdown-item:active {
    background-color: #ef6c00 !important;
}

.fa-circle-question {
    color: #2C3E50;
    font-size: 25px;
    margin-right: 50px;
    margin-top: 10px;
}

.mr50 {
    margin-right: 50%;
}

.detail-row {
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s;
}

.detail-row:hover {
    background: #f8f9fa;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--secondary-color);
    width: 220px;
    flex-shrink: 0;
}

.detail-value {
    color: #495057;
    flex: 1;
}

.view-screen-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.view-header {
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.avatar {
    width: 80px;
    height: 80px;
    background: #FF8C42;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.info-item label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: #2C3E50;
    font-weight: 500;
}

.status {
    color: #28a745;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
}

.activity {
    background: #f8f9fa;
    padding: 2rem;
}

.activity-section {
    background: #f8f9fa;
    padding: 2rem;
    border-top: 1px solid #eee;
}

.status-success {
    color: #28a745;
    font-weight: 600;
}

.status-fail {
    color: #dc3545;
    font-weight: 600;
}

.logo-login {
    width: 180px;
    margin-top: 10px;
}

.pagination {
    --bs-pagination-font-size: 12px !important;
}

.img-fluid {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .navbar {
        border-radius: 10px;
    }

    #content {
        margin-left: 0px;
        transition: all 0.3s ease;
    }

    .vaidehi-logo {
        z-index: 1;
        position: relative;
        width: 25%;
    }

    .navbar-nav a {
        color: #fff !important;
    }

    .profile-img {
        top: 20px;
    }

    .empty-state {
        padding: 2rem 1rem;
    }

    .fa-circle-question {
        color: #fff;
        margin-top: 0px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .detail-row {
        flex-direction: column;
    }

    .detail-label {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .view-screen-btn {
        flex-direction: column;
    }

    .submit-btn,
    .cancel-btn {
        /* width: 100%; */
        text-align: center;
    }

    .grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 12px;
    }

    .mmt-10 {
        margin-top: 10px !important;
    }

    .login-wrapper {
        padding: 16px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .login-form-card {
        max-width: 100%;
        border-radius: 12px;
    }

    .logo-login {
        width: 130px;
    }
}

.custom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.5);

    justify-content: center;
    align-items: center;

    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-modal.show {
    display: flex;
    opacity: 1;
}

.modal-box {
    background: #fff;
    padding: 25px 30px;
    border-radius: 14px;
    text-align: center;
    min-width: 320px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);

    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.custom-modal.show .modal-box {
    transform: scale(1);
}

.modal-icon {
    font-size: 32px;
    color: #f59e0b;
    margin-bottom: 10px;
}

.modal-box p {
    font-size: 15px;
    margin-bottom: 15px;
    color: #333;
}

.modal-actions button {
    padding: 7px 16px;
    border: none;
    border-radius: 8px;
    margin: 0 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-confirm {
    background-color: #28a745;
    color: white;
}

.btn-confirm:hover {
    background-color: #218838;
}

.btn-cancel {
    background-color: #dc3545;
    color: white;
}

.btn-cancel:hover {
    background-color: #c82333;
}

.page-header {
    position: relative;
}

.custom-toast-inline {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);

    background: #d1e7dd;
    color: #0f5132;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeSlide 0.3s ease;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translate(-50%, -10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.sticky-table {
    max-height: 500px;
    overflow-y: auto;
}

.sticky-table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #2c3e50;
    color: #fff;
}

.view-users-btn i {
    transition: all 0.2s ease;
    font-size: 14px;
}

.view-users-btn:hover i {
    color: #FF8C42;
    transform: scale(1.15);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-chart {
    animation: fadeInUp 0.5s ease forwards;
}

.fa-angles-right:before {
    bottom: 2px;
    position: relative;
}

.fa-download:before {
    margin-left: -5px;
}

#togglePassword,
#togglePassword1,
#togglePassword2 {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

.togglePassword {
    position: relative;
    display: inline;
    float: inline-end;
    top: 18px;
    right: 0px;
    cursor: pointer;
    color: #666;
}

.btn-disabled-cooldown {
    opacity: 0.65 !important;
    filter: grayscale(0.5);
    cursor: not-allowed !important;
    position: relative;
}

.btn-disabled-cooldown::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: not-allowed !important;
    z-index: 10;
}

.mr500 {
    margin-right: 500px;
}

.pag-header-title {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .pag-header-title {
        white-space: normal;
        font-size: 20px;
        line-height: 1.2;
        padding: 0 5px;
        color: #000 !important;
    }

    #content {
        padding-top: 0px;
    }
}

.top40 {
    top: 40%;
}

.modal.fade {
    z-index: 9999 !important;
}

#imageModal .modal-dialog {
    max-width: fit-content;
}

#imageModal .modal-content {
    background: transparent;
    border: none;
}

#imageModal .modal-header {
    position: absolute;
    right: 0;
    top: -40px;
    z-index: 1;
}

#imageModal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

#modalImage {
    max-height: 85vh;
    max-width: 90vw;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

/* Admin Footer styling */
.admin-footer {
    background: transparent;
    color: #64748b;
    margin-top: 60px;
    padding: 25px 0 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    font-size: 11.5px;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

.admin-footer a {
    color: #FF8C42;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease, border-color 0.25s ease;
    border-bottom: 1px dashed rgba(255, 140, 66, 0.4);
    padding-bottom: 1px;
}

.admin-footer a:hover {
    color: #2C3E50;
    border-bottom-color: #2C3E50;
    text-decoration: none !important;
}

.admin-footer div {
    margin: 4px 0;
}

@media (max-width: 768px) {
    .admin-footer {
        margin-top: 40px;
        padding: 20px 0 15px;
        font-size: 11px;
    }
}