/* =============================================================================
 * authbox.org Dashboard - Styles
 * ============================================================================= */

/* Reset & Basis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background: rgba(26, 26, 46, 0.95);
    border-bottom: 1px solid #2a2a4e;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d4ff;
    text-decoration: none;
}

.user {
    color: #8892b0;
    margin-right: 1rem;
}

.btn-logout {
    background: transparent;
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #ff6b6b;
    color: #1a1a2e;
}

/* Main */
main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Footer */
footer {
    background: rgba(26, 26, 46, 0.95);
    border-top: 1px solid #2a2a4e;
    padding: 1rem 2rem;
    text-align: center;
    color: #8892b0;
    font-size: 0.85rem;
}

/* =============================================================================
 * Auth-Seiten (Login/Register)
 * ============================================================================= */

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

.auth-box {
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid #2a2a4e;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #00d4ff;
}

.subtitle {
    text-align: center;
    color: #8892b0;
    margin-bottom: 1.5rem;
}

.info-box {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.info-box h3 {
    color: #00d4ff;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.info-box ul {
    list-style: none;
    font-size: 0.85rem;
    color: #b0b0b0;
}

.info-box li {
    margin: 0.3rem 0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #8892b0;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #16213e;
    border: 1px solid #2a2a4e;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.btn-primary {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #00d4ff;
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #ff9f43;
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #8892b0;
    font-size: 0.9rem;
}

.auth-link a {
    color: #00d4ff;
    text-decoration: none;
}

.auth-link a:hover {
    color: #ff9f43;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid #2a2a4e;
    border-radius: 8px;
    color: #8892b0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: #00d4ff;
    color: #00d4ff;
}

.tab-btn.active {
    background: #00d4ff;
    border-color: #00d4ff;
    color: #1a1a2e;
    font-weight: 600;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

/* =============================================================================
 * Dashboard
 * ============================================================================= */

.dashboard h1 {
    margin-bottom: 1.5rem;
    color: #00d4ff;
}

/* Stats */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid #2a2a4e;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00d4ff;
}

.stat-value.stat-ok {
    color: #4ade80;
}

.stat-value.stat-error {
    color: #ff6b6b;
}

.stat-label {
    color: #8892b0;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Domains Table */
.domains-section {
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid #2a2a4e;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.domains-section h2 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.2rem;
}

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

.domains-table {
    width: 100%;
    border-collapse: collapse;
}

.domains-table th,
.domains-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #2a2a4e;
}

.domains-table th {
    color: #8892b0;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.domains-table td {
    font-size: 0.9rem;
}

.domain-name {
    color: #00d4ff;
    font-weight: 500;
}

.status {
    font-size: 0.85rem;
}

.status.ok {
    color: #4ade80;
}

.status.error {
    color: #ff6b6b;
}

.status.warning {
    color: #ff9f43;
}

.loading {
    text-align: center;
    color: #8892b0;
    padding: 2rem;
}

/* Events */
.events-section {
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid #2a2a4e;
    border-radius: 12px;
    padding: 1.5rem;
}

.events-section h2 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.2rem;
}

.events-list {
    list-style: none;
}

.events-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #2a2a4e;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.events-list li:last-child {
    border-bottom: none;
}

/* =============================================================================
 * Responsive
 * ============================================================================= */

@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .domains-table {
        font-size: 0.8rem;
    }
}
