/* Colors */
:root{
    --sidebar-bg: #1A588B; /* deep blue sidebar background */
    --active-bg: #10b981;  /* green active background */
    --inactive-bg: #E2F2FF; /* white inactive background */
    --text-white: #ffffff; /* white text */
    --text-dark: #333333; /* dark text for inactive items */
}

/* Sidebar container with rounded right corners */
aside#sidebar {
    z-index: 40;
    width: 200px;
    min-width: 200px;
    background: var(--sidebar-bg);
}

/* Sidebar inner container */
.sidebar-inner {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

/* Logo section */
.logo-section {
    padding: 0 20px 24px 20px;
}

.logo-card {
    background: white;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Navigation container */
.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    position: relative;
}

/* Main navigation items - center aligned */
.nav-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    justify-content: center;
    padding: 0 20px;
}

/* Base navigation item - white background, rounded right */
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--inactive-bg);
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    margin-left: -20px; /* Attached to left edge */
    margin-right: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.nav-item:hover {
    background: linear-gradient(to right, #15597a, #10B981FF);
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);

    /* White border on top, right, and bottom */
    border-top: 3px solid #ffffff;
    border-right: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
}

/* Icon styling */
.nav-item svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Help section fixed at bottom */
.nav-bottom {
    margin-top: auto;
    padding: 20px;
    padding-left: 0px !important;

}

/* Help item styling */
.nav-bottom .nav-item {
    margin-left: 0;
    margin-right: 0;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
    aside#sidebar {
        width: 100%;
        min-width: 100%;
        border-radius: 0;
    }

    .nav-item.active {
        margin-right: 0;
        border-radius: 0;
    }

    .nav-item {
        border-radius: 0;
        margin-left: 0;
    }
}

.nav-item.active {
    background: linear-gradient(to right, #15597a, #10B981FF);
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    color: var(--text-white);
    padding-top: 30px;
    padding-bottom: 30px;
    padding-right: 24px;
    margin-right: -40px; /* Extends beyond sidebar */
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);

    /* ✅ White border only on top, right, and bottom */
    border-top: 3px solid #ffffff;
    border-right: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
}





/* Responsive adjustments */
@media (max-width: 1023px) {
    aside#sidebar {
        width: 100%;
        min-width: 100%;
        border-radius: 0;
    }

    .nav-item.active {
        margin-right: 0;
        border-radius: 0;
    }
}



/* Sticky footer styles */
html, body {
    height: 100%;
    font-family: 'Inter', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
}

.app-container {
    display: flex;
    flex: 1;
    min-height: 100vh;
}

.main-content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.main-content {
    flex: 1;
    overflow-y: auto;
}

.footer {
    margin-top: auto;
}




/* Setting page Css */

.download-btn {
    background: linear-gradient(to right, #1A588B, #059669);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 16px 30px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.download-btn:hover {
    background: linear-gradient(to right, #059669, #047857);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}
.logout-btn {
    background: linear-gradient(to right, #D5B641, #D5B641);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 16px 50px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.settings-button {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.button-content {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.button-icon {
    width: 24px;
    height: 24px;
    margin-right: 16px;
}

.button-arrow {
    width: 20px;
    height: 20px;
}

/* Default state for buttons */
.settings-button:not(.active) {
    background-color: white;
    border: 2px solid #1A588B;
}

.settings-button:not(.active) .button-icon {
    color: #1A588B;
}

.settings-button:not(.active) .button-content span,
.settings-button:not(.active) .button-arrow {
    color: #1A588B;
}

/* Hover state for non-active buttons - looks like active button */
.settings-button:not(.active):hover {
    background: linear-gradient(to right, #1A588B, #059669);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 26px 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.settings-button:not(.active):hover .button-icon,
.settings-button:not(.active):hover .button-content span,
.settings-button:not(.active):hover .button-arrow {
    color: white;
}

/* Active state for certificate button */
.settings-button.active {
    background: linear-gradient(to right, #1A588B, #059669);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 26px 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hover state for active button - stays the same */
.settings-button.active:hover {
    background: linear-gradient(to right, #1A588B, #059669);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 26px 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.settings-button.active .button-icon,
.settings-button.active .button-content span,
.settings-button.active .button-arrow {
    color: white;
}

.settings-button.active:hover .button-icon,
.settings-button.active:hover .button-content span,
.settings-button.active:hover .button-arrow {
    color: white;
}

/* Tab content styling */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Form styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: #1A588B;
    box-shadow: 0 0 0 3px rgba(26, 88, 139, 0.1);
}

.save-btn {
    background: linear-gradient(to right, #1A588B, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.save-btn:hover {
    background: linear-gradient(to right, #059669, #047857);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

/* Password form styling */
.password-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.password-icon {
    margin-bottom: 2rem;
}

.password-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.password-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.password-input:focus {
    outline: none;
    border-color: #1A588B;
    box-shadow: 0 0 0 3px rgba(26, 88, 139, 0.1);
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
}

.password-save-btn {
    background: linear-gradient(to right, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.password-save-btn:hover {
    background: linear-gradient(to right, #439D55, #047857);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

/* Document page css */


/* Custom styles to match the screenshot exactly */
.module-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.module-tab {
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.module-tab:hover {
    color: #374151;
}

.module-tab.active {
    color: #10b981;
}

.module-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #10b981;
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-item {
    background-color: white;
    border: 1px solid #1A588B;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.download-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.file-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.download-btn {
    background: linear-gradient(to right, #1A588B, #059669);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 16px 30px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.download-btn:hover {
    background: linear-gradient(to right, #059669, #047857);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .module-tabs {
        gap: 12px;
        margin-bottom: 16px;
    }

    .module-tab {
        padding: 8px 0;
        font-size: 12px;
        min-width: 80px;
    }

    .download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .download-btn {
        align-self: flex-end;
    }
}


/*dashboard home*/
.training-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.training-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}