:root {
    --primary-color: #066de6;
    --secondary-color: #ff6d00;
    --text-primary: #2c3659;
    --text-secondary: #a7aec1;
    --bg-primary: #fff;
    --bg-secondary: #f6f7fa;
    --bg-tertiary: #eff2f3;
    --border-color: #f5f5f5;
    --success-color: #4cd964;
    --warning-color: #ff9e55;
    --shadow-sm: 0px 4px 20px rgba(169, 173, 180, 0.1);
    --shadow-lg: 0px 4px 120px rgba(169, 173, 180, 0.15);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.t9-login-container {
    background: #002A4C !important;
}

.t9-login-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t9-login-right {
    width: 480px;
}

.t9-login-right:before {
    content: '';
    background: url(https://d18kp0yitrawt4.cloudfront.net/cap/2024/07/07082434/cap-pattern-one.png) no-repeat;
    position: absolute;
    width: 51%;
    height: 100%;
    background-position: 0px -280px;
}
.t9-error {
    color: #d9534f;
    margin-bottom: 10px;
}




.t9-login-form h2 {
    color: #fff;
}

.t9-login-form p {
    display: block;
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 32px !important;
}

.t9-login-form input[type="text"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.t9-login-form input[type="password"] {
    margin-bottom: 16px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    
}

}
/* Styles for tablet and larger screens */
@media (max-width: 768px) {
    .t9-login-left {
    display: none;
}


    .t9-login-right {
        width: 100%; /* Căn chỉnh toàn màn hình */
        padding: 40px; /* Padding lớn hơn trên tablet/desktop */
    }

.t9-login-right:before {
    width: 100%;
}

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    background-color: var(--bg-primary);
    border-right: 1.5px solid var(--border-color);
    padding: 25px 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.team-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 15px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.team-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.team-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.team-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.team-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 8px;
}

.team-type {
    font-size: 14px;
    color: var(--text-secondary);
}

.nav-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
    background-color: var(--primary-color);
    color: var(--bg-primary);
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    filter: brightness(0) invert(1);
}

.theme-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
}

.switch-label {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.switch-toggle {
    width: 36px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
    position: relative;
    cursor: pointer;
    border: none;
    padding: 2px;
}

.switch-handle {
    width: 16px;
    height: 16px;
    background-color: var(--bg-primary);
    border-radius: 50%;
    position: absolute;
    left: 2px;
    transition: transform 0.2s ease;
}

.switch-toggle[aria-checked="true"] .switch-handle {
    transform: translateX(16px);
}

.help-section {
    background-color: var(--text-primary);
    border-radius: var(--radius-lg);
    padding: 24px 16px 32px;
    text-align: center;
    color: var(--bg-primary);
        position: fixed;
    bottom: 24px;
    width: 230px;
}

.help-title {
    font-size: 18px;
    margin-bottom: 12px;
}

.help-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 26px;
}

.help-button {
    background-color: var(--primary-color);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: solid;
}

.help-button:hover {
    background-color: #0559b9;
}


.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    background-color: var(--bg-primary);
    padding: 24px;
    position: fixed;
    width:calc(100% - 280px);
    z-index: 99;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 12px;
    width: 100%;
    max-width: 400px;
}

.search-input {
    border: none;
    background: none;
    width: 100%;
    font-size: 14px;
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.user-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.new-project-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-lg);
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.new-project-btn:hover {
    background-color: #1a2340;
}

.notifications-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--secondary-color);
    color: var(--bg-primary);
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 12px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 700;
    color: var(--text-primary);
}

.user-email {
    font-size: 14px;
    color: var(--text-secondary);
}

.user-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.welcome-section {
    margin-bottom: 52px;
}

.welcome-title {
    font-size: 28px;
    margin-bottom: 6px;
}

.welcome-text {
    color: var(--text-secondary);
}

.statistics-section {
    margin-bottom: 48px;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.stats-filters {
    display: flex;
    gap: 20px;
}

.filter-btn {
    border: 1.5px solid var(--border-color);
    background: none;
    border-radius: var(--radius-lg);
    padding: 8px 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.stats-chart {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.chart-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 200px;
    margin-bottom: 16px;
}

.chart-bar {
    width: 52px;
    display: flex;
    gap: 4px;
}

.bar-fill {
    flex: 1;
    background-color: var(--primary-color);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: height 0.3s ease;
}

.bar-fill.secondary {
    background-color: var(--secondary-color);
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 12px;
}

.project-cards,
.task-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.project-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.project-header {
    position: relative;
    height: 120px;
}

.project-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.priority-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--bg-primary);
    padding: 3px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.project-info {
    padding: 14px 16px;
}

.project-title h4 {
    margin-bottom: 4px;
}

.project-title p {
    color: var(--text-secondary);
    font-size: 14px;
}

.project-members {
    display: flex;
    align-items: center;
    margin-top: 12px;
}

.project-members img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    margin-left: -8px;
}

.project-members img:first-child {
    margin-left: 0;
}

.member-count {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 12px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    margin-left: 8px;
}

.project-progress {
    padding: 16px;
}

.progress-bar {
    background-color: var(--border-color);
    border-radius: 15px;
    height: 6px;
    overflow: hidden;
}

.progress {
    background-color: var(--secondary-color);
    height: 100%;
    transition: width 0.3s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 14px;
}

.progress-stats span:first-child {
    color: var(--text-secondary);
}

.task-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-between;
}

.task-info h4 {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 4px;
}

.task-info p {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.task-meta {
    display: flex;
    gap: 16px;
}

.task-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-tertiary);
    padding: 6px 8px;
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--text-secondary);
}

.task-members {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-members img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

@media (max-width: 1200px) {
    .dashboard {
        grid-template-columns: 240px 1fr;
    }
    
    .main-content {
        padding: 24px;
    }

}



@media (max-width: 992px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
        .top-bar {
    width: 100%;
}    

}
section.dashboard-content {
    padding: 16px;
    margin-top: 90px;
}

    


i.lni {
    font-size: 24px !important;
}

.content-header {
    margin-bottom: 32px;
}

.content-body {
    padding: 32px 0;
    background: #fff;
    border-radius: 8px;
}

/* Modal Box */
#customModal .modal-dialog-slide-right {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    height: 100%; /* Chiều cao modal */
    width: 500px; /* Chiều rộng modal */
    transition: transform 0.3s ease; /* Thêm hiệu ứng mượt */
}

#customModal .fade .modal-dialog-slide-right {
    transform: translateX(100%); /* Vị trí ban đầu */
}

#customModal .show .modal-dialog-slide-right {
    transform: translateX(0); /* Trượt vào */
}

#customModal .modal-content {
    height: 100%;
}

#customModal form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Giảm opacity nền khi modal hiển thị */
#customModal .modal-backdrop {
    opacity: 0.5;
}

table th {
    color: #2c3659;
    font-size: 12px;
    text-transform: uppercase;
    border-bottom: 1.5px solid var(--border-color);
    padding: 0 16px 16px;
}

table td {
    padding: 16px 16px;
}

.course-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.course-card {
    width: calc(33.33% - 20px);
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.course-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.course-card p {
    font-size: 14px;
    color: #666;
}

.course-card .button {
    display: inline-block;
    padding: 8px 15px;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
}

.course-card .button:hover {
    background-color: #0056b3;
}



/* Dashboard */
.dashboard-content h1 {
    font-size: 24px;
    font-weight: bold;
}

.t9-title {
    display: flex
;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px !important;
}

.dashboard-content h2 {
    font-size: 20px;
    font-weight: bold;
    text-transform: capitalize;
}

/* Cards */
.card {
    border: none;
}

.card-img, .card-img-top, .placeholder {
    object-fit: cover;
    height: 160px;
}

.card-title {
    font-size: 16px;
}

.card-title a {
    color: #2C3659;
    text-transform: capitalize;
    font-weight: bold;
    text-decoration: none;
}

.card-footer.text-muted {
    background: #E2E4EA;
    border: none;
    font-size: 14px;
    padding: 16px !important;
    color: #2C3659 !important;
}

.card-body img {
    border-radius: 50%;
}

.card-body .text-muted {
    color: #A7AEC1 !important;
    font-size: 14px;
}

.card-body .progress {
    background-color: #F5F5F5 !important;
    height: 8px;
}

.t9-author-sec strong {
    color: #2C3659;
}

.card-body .bg-success {
    background-color: #FF6D00 !important;
}

.t9-progress-sec strong {
    font-size: 14px;
}

.notifications-dropdown .dropdown-toggle::after {
    display:none !important;
}

.t9-card-label {
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, .2);
    border-radius: 4px !important;
}

.card-footer a.btn {
    padding: 8px 16px;
    font-weight: bold;
}

/* Indicators */
.t9-indicators-card {
    background: #fff !important;
}

.t9-indicators-card h3 {
    color: #2C3659;
    font-size: 24px;
}

.t9-indicators-des {
    color: #A7AEC1 !important;
}


a.t9-link-sec {
    color: #A7AEC1;
    text-decoration: none;
}

a.t9-link-sec {
    color: #A7AEC1;
    text-decoration: none;
}

.t9-indicators-sec {
    --bs-gutter-y: 8px !important;
    --bs-gutter-x: 8px !important;
}

.t9-user-profile .dropdown-toggle::after {
    display: none;
}

.offcanvas-footer {
    padding: 16px;
    background: #f6f7fa;
}

.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
    border: transparent;
}