/* --- Global Dark Theme for ChessPy --- */

/* --- TYPOGRAPHY & COLORS --- */
body {
    color: #ecf0f1; /* Default light text color */
}

h1, h2, h3, h4, h5, h6 {
    color: #f1c40f; /* Yellow for titles */
}

a {
    color: #3498db; /* Standard link blue */
    text-decoration: none;
}

a:hover {
    color: #5dade2;
}

.text-muted {
    color: #f39c12 !important; /* Yellow for muted text */
}

.text-success, .text-success a {
    color: #28a745 !important; /* Green for success */
}

/* --- MAIN LAYOUT & CONTAINERS --- */
.content-inner {
    padding: 40px;
    overflow-y: auto;
    height: 100%;
}

/* Generic container box, like on the dashboard */
.input-box {
    background: #252525;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border: 1px solid #444;
}

.input-box-accent {
    background-color: #2a3b4c;
    border: 1px solid #f39c12;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.2);
}

/* --- FORMS --- */
.form-label {
    color: #f1c40f;
    margin-bottom: 0.5rem;
}

.form-control,
select,
textarea {
    background-color: #2c3e50 !important;
    border: 1px solid #444 !important;
    color: #f1c40f !important;
}


.form-control:focus,
select:focus,
textarea:focus {
    background-color: #34495e !important;
    border-color: #3498db !important;
    box-shadow: none !important;
}

.form-control::placeholder,
textarea::placeholder {
    color: #bdae4f;
    opacity: 0.7;
}

/* --- BUTTONS --- */
.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
}
.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-secondary {
    background-color: #34495e;
    border-color: #444;
}

/* --- PAGINATION --- */
.pagination .page-link {
    background-color: #34495e;
    border-color: #444;
    color: #f1c40f;
}
.pagination .page-link:hover {
    background-color: #4e73df;
}
.pagination .page-item.disabled .page-link {
    background-color: #2c3e50;
    color: #8a7c3a;
}
.pagination .page-item.active .page-link {
    background-color: #4e73df;
    border-color: #4e73df;
}

/* --- CARDS (e.g., for messages) --- */
.dark-card {
    background-color: #34495e;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    color: #ecf0f1; /* Default card text is light gray */
}

.dark-card.yellow-text {
    color: #f1c40f; /* Override for cards that need yellow text */
}

.dark-card.unread {
    border-left: 5px solid #3498db;
    background-color: #3e5871;
}

/* --- TABLES --- */
.table-dark-theme {
    width: 100%;
    background-color: #2c3e50;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.9em;
    border-radius: 8px;
    overflow: hidden;
    color: #f1c40f; /* Yellow text for tables */
}
.table-dark-theme th {
    background-color: #34495e;
    color: #f1c40f; /* Yellow titles */
    text-align: left;
    padding: 12px 15px;
}
.table-dark-theme td {
    padding: 12px 15px;
    border-top: 1px solid #444;
}
.table-dark-theme tr:hover td {
    background-color: #3e5871;
}
.table-dark-theme a {
    color: #87ceeb; /* Lighter blue for links inside tables */
}

/* --- BADGES --- */
.badge-plan-free { background-color: #7f8c8d; color: white; }
.badge-plan-pro { background-color: #f1c40f; color: #2c3e50 !important; }
.badge-plan-admin { background-color: #e74c3c; color: white; }

/* --- PRICING PLANS --- */
.plan-card {
    transition: transform 0.3s;
}
.plan-card:hover {
    transform: translateY(-5px);
}
.plan-free .card-header { color: #bdc3c7; }
.plan-pro .card-header { color: #f1c40f; }
.plan-admin .card-header { color: #e74c3c; }

.current-plan-badge { 
    position: absolute; 
    top: -10px; 
    right: -10px; 
    background: #27ae60; 
    color: white; 
    padding: 5px 10px; 
    border-radius: 20px; 
    font-size: 0.8em; 
    font-weight: bold; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.3); 
}

