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

body {
    background: #0a0a0a;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    padding: 15px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 2px solid #333;
    margin-bottom: 20px;
}

.header h1 {
    color: #ff9800;
    font-size: 22px;
}

.header h1 span {
    color: #666;
    font-size: 12px;
    font-weight: normal;
}

.logout-btn {
    background: #d50000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

/* Cards */
.card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.card h2 {
    color: #ff9800;
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

/* Form */
.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    color: #888;
    font-size: 12px;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: #252525;
    border: 1px solid #444;
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
}

.form-group input:focus {
    border-color: #ff9800;
    outline: none;
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #ff9800;
    color: #000;
}

.btn-primary:hover {
    background: #f57c00;
}

.btn-success {
    background: #00c853;
    color: #000;
}

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

.btn-small {
    padding: 8px 15px;
    font-size: 12px;
    width: auto;
}

/* Table */
.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th,
.user-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.user-table th {
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
}

.user-table td {
    font-size: 13px;
}

.status-active {
    color: #00e676;
}

.status-expired {
    color: #d50000;
}

.actions {
    display: flex;
    gap: 5px;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    width: 100%;
    max-width: 350px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
}

.login-box h1 {
    color: #ff9800;
    text-align: center;
    margin-bottom: 10px;
}

.login-box p {
    color: #666;
    text-align: center;
    margin-bottom: 25px;
    font-size: 12px;
}

.error-msg {
    background: #d50000;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 12px;
    text-align: center;
    display: none;
}

.success-msg {
    background: #00c853;
    color: #000;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 12px;
    text-align: center;
    display: none;
}

/* Stats */
.stats {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-box {
    flex: 1;
    background: #252525;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.stat-box .number {
    font-size: 28px;
    font-weight: bold;
    color: #ff9800;
}

.stat-box .label {
    font-size: 11px;
    color: #888;
    margin-top: 5px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Hide */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }

    .user-table th:nth-child(3),
    .user-table td:nth-child(3) {
        display: none;
    }
}
