:root {
    --primary: #fff;
    --secondary: #999;
    --success: #fff;
    --danger: #fff;
    --warning: #fff;
    --info: #fff;
    --light: #333;
    --dark: #000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    color: #fff;
    min-height: 100vh;
}

.navbar {
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar a {
    color: white !important;
}

.navbar a:hover {
    opacity: 0.7;
}

.sidebar {
    background: #1a1a1a;
    border-right: 1px solid #333;
    padding: 20px;
    min-height: calc(100vh - 60px);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    display: block;
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #222;
    border-color: #555;
}

.main-content {
    padding: 30px;
    color: #fff;
}

.card {
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #1a1a1a;
}

.card-header {
    background: #222;
    color: white;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #333;
}

.btn {
    border: none;
    border-radius: 4px;
    padding: 10px 18px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-primary:hover {
    background: #ddd;
    color: #000;
}

.btn-danger {
    background: #fff;
    color: #000;
}

.btn-danger:hover {
    background: #ddd;
    color: #000;
}

.btn-success {
    background: #fff;
    color: #000;
}

.btn-success:hover {
    background: #ddd;
    color: #000;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.875rem;
}

.table {
    background: #1a1a1a;
    border-collapse: collapse;
    color: #fff;
}

.table th {
    background: #222;
    font-weight: 600;
    border-bottom: 1px solid #333;
    color: white;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #333;
}

.table tr:hover {
    background: #222;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: #fff;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 1rem;
    background: #1a1a1a;
    color: #fff;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #777;
    background: #222;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #222;
    color: #fff;
    border: 1px solid #555;
}

.alert-danger {
    background: #222;
    color: #fff;
    border: 1px solid #555;
}

.alert-info {
    background: #222;
    color: #fff;
    border: 1px solid #555;
}

.alert-warning {
    background: #222;
    color: #fff;
    border: 1px solid #555;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success {
    background: #fff;
    color: #000;
}

.badge-danger {
    background: #fff;
    color: #000;
}

.badge-warning {
    background: #fff;
    color: #000;
}

.badge-info {
    background: #fff;
    color: #000;
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    border: 4px solid #333;
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #000;
}

.login-box {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    border: 1px solid #333;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
}

.key-display {
    background: #0a0a0a;
    padding: 15px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    margin: 10px 0;
    color: #fff;
    border: 1px solid #333;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
}

.status-active {
    background: #fff;
    color: #000;
}

.status-inactive {
    background: #fff;
    color: #000;
}

.status-expired {
    background: #fff;
    color: #000;
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .table {
        font-size: 0.875rem;
    }
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 20px;
}

.mb-3 {
    margin-bottom: 20px;
}

.p-3 {
    padding: 20px;
}

.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stats-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stats-card .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 10px 0;
}

.stats-card .label {
    color: #666;
    font-size: 0.95rem;
}
