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

body {
    background-color: #0f0f0f;
    color: #ffffff;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #1a1a1a;
    border-bottom: 1px solid #374151;
    padding: 15px 30px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #edfc8d;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    color: #a0a0a0;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 4px;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link.active {
    color: #0f0f0f;
    background-color: #edfc8d;
}

.btn-logout {
    background: none;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-logout:hover {
    background-color: #ef4444;
    color: #ffffff;
}

main {
    flex: 1;
    width: 100%;
    padding: 20px;
}

.panel {
    background-color: #1a1a1a;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    border-left: 4px solid #edfc8d;
    padding-left: 10px;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background-color: #1a1a1a;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 25px;
}

.auth-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: #edfc8d;
    margin-bottom: 5px;
}

.auth-subtitle {
    color: #a0a0a0;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #a0a0a0;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    background-color: #0f0f0f;
    border: 1px solid #374151;
    border-radius: 4px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #edfc8d;
}

.btn-primary {
    width: 100%;
    background-color: #edfc8d;
    color: #0f0f0f;
    border: none;
    border-radius: 4px;
    padding: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #f5fdb5;
}

.auth-footer {
    text-align: center;
    margin-top: 15px;
    color: #a0a0a0;
    font-size: 14px;
}

.auth-link {
    color: #edfc8d;
    text-decoration: none;
    font-weight: bold;
}

.auth-link:hover {
    text-decoration: underline;
}


.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.data-table th, .data-table td {
    padding: 10px;
    border: 1px solid #374151;
    text-align: left;
    font-size: 14px;
}

.data-table th {
    background-color: #1a1a1a;
    color: #a0a0a0;
    font-weight: bold;
}

.data-table td {
    background-color: #0f0f0f;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.badge-admin {
    background-color: #ef4444;
    color: #ffffff;
}

.badge-manager {
    background-color: #f59e0b;
    color: #ffffff;
}

.badge-user {
    background-color: #6366f1;
    color: #ffffff;
}


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

.delete-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    text-decoration: underline;
}

.delete-btn:hover {
    color: #ff8888;
}