.sidebar-logo {
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 1px solid #1a3557;
    margin-bottom: 20px;
    background: none;
}
html, body {
    height: 100%;
}
body {
    font-family: 'Satoshi', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #16171a;
    min-height: 100vh;
    color: #fff;
}
h1, h2, h3, h4, h5, h6, p, label, th, td, span, div, li, a, input, select, textarea {
    color: #fff;
}
/* Sidebar navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 210px;
    height: 100vh;
    background: #1e1e1e;
    color: white;
    padding-top: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 8px rgba(0,0,0,0.07);
    min-height: 100vh;
}
.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar nav ul li {
    list-style-type: none !important;
    margin: 0 0 10px 0;
    padding: 0;
}
.sidebar nav ul li a,
.sidebar nav ul li .link-button {
    color: white !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background 0.2s;
    font-size: 16px;
    font-weight: 500;
    background: none;
    box-shadow: none;
}
.sidebar nav ul li a:visited,
.sidebar nav ul li a:active,
.sidebar nav ul li a:focus {
    color: white !important;
    text-decoration: none !important;
    outline: none;
}
.sidebar nav ul li a:hover, .sidebar nav ul li .link-button:hover {
    background: #00509e;
    color: #fff !important;
    text-decoration: none !important;
}
.sidebar nav ul li {
    list-style: none;
    margin: 0 0 10px 0;
    padding: 0;
}
.sidebar nav ul li a, .sidebar nav ul li .link-button {
    color: white !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background 0.2s;
    font-size: 16px;
    font-weight: 500;
}
.sidebar nav ul li a:visited {
    color: white !important;
}
.sidebar nav ul li a:hover, .sidebar nav ul li .link-button:hover {
    background: #00509e;
    color: #fff !important;
}
.sidebar nav ul li {
    margin: 0 0 10px 0;
}
.sidebar nav ul li a, .sidebar nav ul li .link-button {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background 0.2s;
    font-size: 16px;
}
.sidebar nav ul li a:hover, .sidebar nav ul li .link-button:hover {
    background: #00509e;
}
.sidebar nav ul li i {
    margin-right: 10px;
    font-size: 18px;
}
.link-button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    color: inherit;
    width: 100%;
    text-align: left;
}
.main-content {
    margin-left: 210px;
    padding: 30px 30px 30px 15px;
    min-height: 0;
}

/* login centering */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Admin Page Styles */
.admin-container {
    max-width: 1200px;
    margin: 0;
}

.admin-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
}

.admin-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
}

.add-user-section {
    background: #1e1e1e;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 1px solid #2a2a2a;
}

.add-user-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
}

.add-user-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.form-group label {
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    padding: 10px 12px;
    background: #1c1c1c;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group select {
    padding: 10px 12px;
    background: #1c1c1c;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.2s;
    cursor: pointer;
}

.form-group input:focus {
    outline: none;
    border-color: #00509e;
    box-shadow: 0 0 0 3px rgba(0, 80, 158, 0.1);
}

.users-section {
    margin-bottom: 30px;
}

.users-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #1e1e1e;
}

.admin-table thead {
    background: #0d1b2a;
}

.admin-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #fff;
    border-bottom: 2px solid #2a2a2a;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0.5px;
}

.admin-table tbody tr {
    border-bottom: 1px solid #2a2a2a;
    transition: background 0.2s;
}

.admin-table tbody tr:hover {
    background: #262626;
}

.admin-table td {
    padding: 15px;
    font-size: 14px;
}

.user-type {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-type.admin {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.user-type.standard {
    background: rgba(0, 163, 235, 0.2);
    color: #00a3eb;
}

/* User Type Cell - Editable */
.user-type-cell {
    position: relative;
}

.user-type-display {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.user-type-display.admin {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.user-type-display.standard {
    background: rgba(0, 163, 235, 0.2);
    color: #00a3eb;
}

.user-type-display:hover {
    opacity: 0.8;
    box-shadow: 0 0 8px rgba(0, 80, 158, 0.3);
}

.user-type-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1e1e1e;
    border: 1px solid #3a3a3a;
    border-top: none;
    border-radius: 0 0 6px 6px;
    z-index: 100;
    min-width: 180px;
    margin-top: -4px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.type-form {
    padding: 10px;
}

.type-option {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
    gap: 10px;
}

.type-option input[type="radio"] {
    cursor: pointer;
}

.type-option span {
    flex: 1;
}

.type-form .btn {
    margin-top: 10px;
    width: 100%;
}

.btn-cancel {
    background: #333333;
    color: #fff;
}

.btn-cancel:hover {
    background: #404040;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #1e1e1e;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 90%;
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #2a2a2a;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #fff;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin: 10px 0;
    font-size: 14px;
    color: #fff;
}

.modal-body p strong {
    color: #00a3eb;
    font-weight: 600;
}

.warning-text {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 15px !important;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #2a2a2a;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-footer .btn {
    flex: 1;
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}

/* Router Dropdown Styles */
.router-dropdown,
.group-dropdown {
    position: relative;
    display: inline-block;
}

.group-dropdown-content {
    position: fixed;
    background: #1e1e1e;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    z-index: 9999;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: none;
}

.router-btn {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.router-btn:hover {
    background: #333333;
    border-color: #00509e;
}

.router-btn:active {
    background: #1a1a1a;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.router-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1e1e1e;
    border: 1px solid #3a3a3a;
    border-top: none;
    border-radius: 0 0 6px 6px;
    z-index: 100;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.router-checkboxes {
    padding: 10px;
}

.router-checkbox {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
    gap: 10px;
}

.router-checkbox input[type="checkbox"] {
    cursor: pointer;
}

.router-checkbox span {
    flex: 1;
}

.router-form {
    padding: 10px;
    border-top: 1px solid #2a2a2a;
}

.btn-update {
    width: 100%;
    margin-top: 5px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: #00a3eb;
    color: #fff;
}

.btn-primary:hover {
    background: #0088cc;
    color: #fff;
}

.btn-info {
    background: #00a3eb;
    color: #fff;
}

.btn-info:hover {
    background: #0088cc;
    color: #fff;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #e74c3c;
    color: #fff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    border-left-color: #27ae60;
    color: #2ecc71;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-table {
        font-size: 12px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .add-user-form {
        flex-direction: column;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .btn-primary {
        width: 100%;
    }
}
