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

body {
    background-color: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.sidebar {
    background-color: #191C32;
    color: white;
    min-height: 100vh;
    padding: 0;
    width: 240px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.sidebar.collapsed {
    width: 80px;
    background-color: #1a2035;
    color: #a0aec0;
    display: flex;
    flex-direction: column;
    padding-top: 1.5rem;
}

.sidebar.collapsed .sidebar-menu {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    display: none;
}

.sidebar.collapsed .sidebar-collapsed-icons {
    display: block !important;
}

.sidebar.collapsed .sidebar-toggle-btn {
    display: none;
}

.sidebar-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.sidebar-collapsed-icons .nav-link {
    color: #a0aec0;
    text-align: center;
    font-size: 1.5rem;
    padding: 0.75rem 0;
    position: relative;
    text-decoration: none;
}

.sidebar-collapsed-icons .nav-link:hover,
.sidebar-collapsed-icons .nav-link.active {
    color: #fff;
    background-color: #2d3748;
}

.sidebar-collapsed-icons .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #4299e1;
}

.sidebar-collapsed-icons .sidebar-bottom {
    margin-top: auto;
    padding-bottom: 1.5rem;
}

.sidebar-collapsed-icons .sidebar-bottom .fab {
    width: 50px;
    height: 50px;
    background-color: #dcfc5c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #1a2035;
    font-size: 1.5rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .sidebar.collapsed {
        width: 60px;
    }
}

.sidebar a {
    color: inherit;
    text-decoration: none;
}

.sidebar a:hover {
    color: inherit;
}

.sidebar a:active {
    color: inherit;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu {
    padding-top: 10px;
}

.sidebar-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #c5cad3;
    font-size: 14px;
}

.sidebar-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-item.active {
    background-color: #e84c3d;
    color: white;
}

.sidebar-item .arrow {
    font-size: 12px;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.sidebar-item.expanded .arrow {
    transform: rotate(180deg);
}

.sidebar-submenu {
    background-color: #0F0D29;
    padding-top: 5px;
    padding-bottom: 5px;
    max-height: 500px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-submenu.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.sidebar-submenu-item {
    padding: 10px 20px 10px 40px;
    color: #9fb1c4;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.sidebar-submenu-item:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-submenu-item.active {
    color: #5dade2;
}

.sidebar-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    padding-top: 10px;
}

.main-content-wrapper {
    margin-left: 240px;
    margin-top: 60px;
    transition: margin-left 0.3s ease;
}

.main-content-wrapper.sidebar-collapsed {
    margin-left: 80px;
}

@media (max-width: 768px) {
    .main-content-wrapper {
        margin-left: 240px;
    }
    
    .main-content-wrapper.sidebar-collapsed {
        margin-left: 60px;
    }
}

.main-content {
    padding: 30px;
}

.content-wrapper {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.breadcrumb-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.breadcrumb-header strong {
    color: #333;
}

.nav-tabs-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.nav-tab {
    padding: 12px 0;
    border: none;
    background: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.nav-tab:hover {
    color: #333;
}

.nav-tab.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
    font-weight: 600;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-tab {
    padding: 8px 16px;
    border: none;
    background-color: #f0f0f0;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-tab:hover {
    background-color: #e0e0e0;
}
.nav-tabs-container {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0;
}

.nav-tab {
    padding: 14px 0;
    border: none;
    background: none;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: -2px;
}

.nav-tab:hover {
    color: #495057;
}

.nav-tab.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
    font-weight: 600;
}

.nav-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #0d6efd;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-tab.active::after {
    transform: scaleX(1);
}

/* SUB TAB BUTTONS */
.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    margin-top: 20px;
}

.btn-tab {
    padding: 10px 18px;
    border: 1px solid #e9ecef;
    background-color: #fff;
    color: #495057;
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-tab:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #333;
}

.btn-tab.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.25);
}

.btn-tab.active:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
}

.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}

.search-box input::placeholder {
    color: #999;
}

.list-container {
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
}

.list-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background-color: #f9f9f9;
}

.list-title {
    color: #333;
    font-weight: 500;
}

.list-subtitle {
    color: #999;
    font-size: 12px;
    margin-top: 4px;
}

.icon {
    display: inline-block;
    margin-right: 5px;
}

.table-wrapper {
    background: white;
    margin: 20px;
    border-radius: 4px;
    overflow: hidden;
}

#table {
    border-radius: 4px;
}

.text-title {
    font-weight: 600;
    color: #333;
}

/* App Container */
.app-container {
    position: relative;
    min-height: 100vh;
}

/* Header Styles */
.top-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 240px;
    right: 0;
    z-index: 999;
    transition: left 0.3s ease;
}

.top-header.sidebar-collapsed {
    left: 80px;
}

@media (max-width: 768px) {
    .top-header {
        left: 240px;
    }
    
    .top-header.sidebar-collapsed {
        left: 60px;
    }
}

.header-left {
    display: flex;
    align-items: center;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    color: #666;
    transition: all 0.3s;
}

.sidebar-toggle:hover {
    background-color: #f8f9fa;
    color: #333;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-item {
    position: relative;
}

.header-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    position: relative;
    color: #666;
}

.header-btn:hover {
    background-color: #f8f9fa;
    color: #333;
}

.header-btn .icon {
    font-size: 18px;
    margin-right: 0;
}

.badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
}

.user-btn {
    padding: 6px 12px;
    gap: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s;
}

.user-item.active .arrow {
    transform: rotate(180deg);
}

/* Dropdown Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 400px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 5px;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown {
    min-width: 200px;
    max-width: 200px;
}

.dropdown-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-header h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.dropdown-header a {
    font-size: 12px;
    color: #0d6efd;
    text-decoration: none;
}

.dropdown-header a:hover {
    text-decoration: underline;
}

.dropdown-footer {
    padding: 10px 20px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.dropdown-footer a {
    font-size: 13px;
    color: #0d6efd;
    text-decoration: none;
}

.dropdown-footer a:hover {
    text-decoration: underline;
}

/* Notification Dropdown */
.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #f0f8ff;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-content p {
    margin: 0;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.notification-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 11px;
    color: #999;
}

/* Message Dropdown */
.message-list {
    max-height: 300px;
    overflow-y: auto;
}

.message-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.message-item:hover {
    background-color: #f8f9fa;
}

.message-item.unread {
    background-color: #f0f8ff;
}

.message-item:last-child {
    border-bottom: none;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #6c757d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-content p {
    margin: 0;
}

.message-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.message-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.message-time {
    font-size: 11px;
    color: #999;
}

/* User Dropdown */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item.logout {
    color: #dc3545;
}

.dropdown-item.logout:hover {
    background-color: #f8d7da;
}

.dropdown-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-header {
        padding: 0 15px;
    }
    
    .user-name {
        display: none;
    }
    
    .dropdown-menu {
        min-width: 280px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .header-right {
        gap: 2px;
    }
    
    .header-btn {
        padding: 6px 8px;
    }
    
    .dropdown-menu {
        min-width: 250px;
        right: -20px;
    }
}


.table-container {
    background: white;
    margin: 20px;
    border-radius: 4px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f9f9f9;
    border-bottom: 2px solid #e0e0e0;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #666;
    border-right: 1px solid #e0e0e0;
}

td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    border-right: 1px solid #e0e0e0;
}

tr:hover {
    background: #f9f9f9;
}

.checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-group-sm>.btn, .btn-sm {
    padding: .18rem .4rem;
    font-size: .845rem;
    line-height: 1.5;
    border-radius: .2rem;
}
