* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}
.login-box {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px 20px;
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.5s ease;
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.login-header {
    text-align: center;
    margin-bottom: 30px;
}
.login-header h1 {
    color: #333;
    font-size: 25px;
    margin-bottom: 10px;
}
.login-header p {
    color: #666;
    font-size: 14px;
}
.login-form .form-group {
    margin-bottom: 20px;
}
.login-form label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}
.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}
.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.dashboard {
    display: flex;
    height: 100vh;
    background: #f5f7fa;
}
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #071a2c 0%, #2b5074 100%);
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}
.sidebar-header {
    padding: 10px 20px;
    background: linear-gradient(0deg,rgba(10, 37, 64, 1) 10%, rgba(245, 245, 245, 1) 70%);
}
.sidebar-header h2 {
    font-size: 24px;
    font-weight: 600;
}
.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}
.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}
.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: #667eea;
}
.nav-item .icon {
    margin-right: 12px;
    font-size: 18px;
}
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.topbar {
    background: white;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
	text-transform: capitalize;
}
.topbar h1 {
    font-size: 24px;
    color: #2c3e50;
}
.user-info {
    color: #666;
    font-size: 14px;
}
.content-section {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.section-header h2 {
    color: #2c3e50;
    font-size: 22px;
}
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
.btn-secondary {
    background: #95a5a6;
    color: white;
}
.btn-secondary:hover {
    background: #7f8c8d;
}
.btn-danger {
    background: #e74c3c;
    color: white;
}
.btn-danger:hover {
    background: #c0392b;
}
.btn-info {
    background: #3498db;
    color: white;
}
.btn-info:hover {
    background: #2980b9;
}
.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    margin: 0 3px;
}
.btn-block {
    width: 100%;
    padding: 14px;
}
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
table {
    width: 100%;
    border-collapse: collapse;
}
thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
thead th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}
tbody tr:hover {
    background: #f8f9fa;
}
tbody td {
    padding: 15px;
    color: #555;
    font-size: 14px;
}
.topbar span {
    font-weight: 700;
}
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    background: #667eea;
    color: white;
}
.badge-user {
    background: #3498db;
}
.badge-gray {
    background: #95a5a6;
}
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.modal-content {
    background: white;
    margin: 5% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}
.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    color: #2c3e50;
    font-size: 20px;
}
.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}
.close:hover {
    color: #000;
}
.modal-content form {
    padding: 25px;
}
.modal-footer {
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: flex;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="file"] {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}
.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.checkbox-group {
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    color: #555;
    font-size: 14px;
}
.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.checkbox-label:hover {
    color: #667eea;
}
@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
    }
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 0;
    }
    .nav-item {
        flex-shrink: 0;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    .nav-item:hover,
    .nav-item.active {
        border-left: none;
        border-bottom-color: #667eea;
    }
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .table-container {
        overflow-x: auto;
    }
}
@media (max-width: 576px) {

    body {
        font-size: 14px;
    }
    .login-box {
        padding: 30px 20px;
        border-radius: 12px;
    }
    .login-header h1 {
        font-size: 22px;
    }
    .login-header p {
        font-size: 13px;
    }
    .dashboard {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    .sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        height: auto;
    }
    .sidebar-header {
        display: none;
    }
    .sidebar-nav {
        display: flex;
        width: 100%;
        padding: 0;
    }
    .nav-item {
        padding: 12px 16px;
        font-size: 13px;
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    .nav-item.active,
    .nav-item:hover {
        border-bottom-color: #667eea;
        background: rgba(255, 255, 255, 0.1);
    }
    .nav-item .icon {
        margin-right: 6px;
        font-size: 16px;
    }
    .topbar {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .topbar h1 {
        font-size: 18px;
    }
    .user-info {
        font-size: 12px;
    }
    .content-section {
        padding: 15px;
    }
    .section-header h2 {
        font-size: 18px;
    }
    .btn {
        font-size: 13px;
        padding: 10px 14px;
    }
    .btn-small {
        padding: 6px 10px;
        font-size: 12px;
    }
    .btn-block {
        padding: 14px;
        font-size: 14px;
    }
    .table-container {
        overflow-x: auto;
        border-radius: 10px;
    }
    table {
        min-width: 600px;
    }
    thead th,
    tbody td {
        padding: 12px;
        font-size: 13px;
    }
    .badge {
        font-size: 12px;
        padding: 4px 8px;
    }
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
        overflow-y: auto;
    }
    .modal-header h3 {
        font-size: 18px;
    }
    .modal-content form {
        padding: 20px;
    }
    .form-group label {
        font-size: 13px;
    }
    .form-group input {
        font-size: 13px;
        padding: 10px 12px;
    }
    .checkbox-group {
        max-height: 160px;
        padding: 10px;
    }
}
@media (min-width: 577px) and (max-width: 992px) {
    .sidebar {
        width: 220px;
    }
    .topbar h1 {
        font-size: 20px;
    }
    .content-section {
        padding: 20px;
    }
    .section-header h2 {
        font-size: 20px;
    }
}
@media (hover: none) {
    .btn:hover {
        transform: none;
        box-shadow: none;
    }
}


.file-actions .btn {
    box-shadow: 0 0 3px #878787;
}



.modal-content {
    overflow: auto;
    height: 480px !important;
} 