.login-container {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    text-align: center;
}

.login-container h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #fff;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #444;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: 'Baloo 2', cursive;
    font-size: 1rem;
    border-radius: 8px;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #bbb;
    font-size: 0.85rem;
}

.nav-btn { /* Re-using your button style */
    width: 100%;
    padding: 12px;
    font-size: 1.2rem;
}

.error-message {
    color: #d32f2f;
    margin-top: 15px;
    font-weight: bold;
    min-height: 1.2em; /* Prevents layout shift */
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

.management-section {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

#user-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#user-search-results {
    max-height: 300px;
    overflow-y: auto;
}

.user-result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.user-result-item:hover {
    background-color: #f0f0f0;
}

.user-result-item:last-child {
    border-bottom: none;
}

#user-details-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
}

#ban-actions, #warn-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.reason-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ban-btn {
    background-color: #d32f2f;
    color: white;
}

.unban-btn {
    background-color: #4caf50;
    color: white;
}

.warn-btn {
    background-color: #fbc02d; /* Amber color */
    color: black;
}

.gift-btn {
    background-color: #03a9f4; /* Light Blue */
    color: white;
}

.remove-btn {
    background-color: #ff9800; /* Orange */
    color: white;
}

.reset-pass-btn {
    background-color: #9c27b0; /* Purple */
    color: white;
}

#gift-actions, #remove-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Moderation Section Styles */
.moderation-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.word-filter-section, .moderation-settings {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
}

.word-filter-section h3, .moderation-settings h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.3rem;
}

#add-word-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#add-word-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#add-word-form button {
    width: auto;
    padding: 10px 20px;
    white-space: nowrap;
}

#censored-words-list h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #555;
}

#censored-words-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #fafafa;
}

.censored-word-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
}

.censored-word-item:last-child {
    border-bottom: none;
}

.censored-word-item span {
    font-weight: 500;
    color: #333;
}

.remove-word-btn {
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.remove-word-btn:hover {
    background-color: #b71c1c;
}

.setting-group {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.setting-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #333;
}

.setting-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.setting-group input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
}

#save-moderation-settings {
    width: 100%;
    margin-top: 15px;
    background-color: #4caf50;
    color: white;
}

#save-moderation-settings:hover {
    background-color: #45a049;
}

/* === MAINTENANCE MODE STYLES === */
.maintenance-controls {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.maintenance-status {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.status-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8);
}

.status-dot.maintenance-on {
    background: linear-gradient(145deg, #ef4444, #dc2626);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2), 0 0 10px rgba(239, 68, 68, 0.3);
    animation: pulse-red 2s infinite;
}

.status-dot.maintenance-off {
    background: linear-gradient(145deg, #10b981, #059669);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

@keyframes pulse-red {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.status-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #374151;
}

.maintenance-info {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.maintenance-info p {
    margin: 5px 0;
    color: #7f1d1d;
}

.maintenance-toggle {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.maintenance-toggle .form-group {
    margin-bottom: 20px;
}

.maintenance-toggle label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.maintenance-toggle textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
}

.maintenance-toggle textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.maintenance-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-danger {
    background: linear-gradient(145deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: linear-gradient(145deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(239, 68, 68, 0.3);
}

.btn-success {
    background: linear-gradient(145deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    background: linear-gradient(145deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(16, 185, 129, 0.3);
}

.btn-primary {
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(145deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(59, 130, 246, 0.3);
}

.whitelist-section {
    background: linear-gradient(145deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.whitelist-section h3 {
    color: #0c4a6e;
    margin-bottom: 10px;
}

.whitelist-section p {
    color: #075985;
    margin-bottom: 20px;
}

.whitelist-section .form-group {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.whitelist-section input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 10px 12px;
    border: 2px solid #bae6fd;
    border-radius: 8px;
    font-size: 0.95rem;
}

.whitelist-section input[type="text"]:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.whitelist-users h4 {
    margin: 25px 0 15px 0;
    color: #0c4a6e;
}

.whitelist-user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #bae6fd;
    border-radius: 8px;
    margin-bottom: 8px;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-info strong {
    color: #0c4a6e;
    font-size: 1rem;
}

.user-info small {
    color: #0369a1;
    font-size: 0.85rem;
}

.btn-danger-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    background: linear-gradient(145deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger-small:hover {
    background: linear-gradient(145deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
}

.no-whitelist {
    color: #64748b;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* === ALLOWED PAGES STYLES === */
.allowed-pages-container {
    background: linear-gradient(145deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
}

.allowed-pages-input {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.allowed-pages-input input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 10px 12px;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
}

.allowed-pages-input input[type="text"]:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.allowed-pages-list {
    min-height: 60px;
}

.allowed-pages-help {
    color: #92400e;
    margin-bottom: 10px;
    font-weight: 600;
}

.allowed-pages-examples {
    list-style: none;
    padding: 0;
    margin: 0;
}

.allowed-pages-examples li {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #f59e0b;
    border-radius: 6px;
    margin-bottom: 6px;
    color: #92400e;
    font-size: 0.9rem;
}

.allowed-pages-examples code {
    background: #fbbf24;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #78350f;
}

.allowed-page-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    margin-bottom: 8px;
}

.allowed-page-item .page-info code {
    background: #fbbf24;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    color: #78350f;
    font-size: 0.95rem;
}

.remove-page-btn {
    padding: 4px 8px;
    font-size: 0.8rem;
    background: linear-gradient(145deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-page-btn:hover {
    background: linear-gradient(145deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .moderation-controls {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    #add-word-form {
        flex-direction: column;
    }
    
    #add-word-form button {
        width: 100%;
    }
    
    .maintenance-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .whitelist-section .form-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .whitelist-user-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .allowed-pages-input {
        flex-direction: column;
        align-items: stretch;
    }
    
    .allowed-page-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
} 