/**
 * /css/styles.css
 * Version: 1.0.0
 * Global Styles
 */

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

section {
    background-color: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 10px;
}

.info p {
    margin-bottom: 20px;
}

.stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-top: 30px;
}

.stat {
    padding: 15px;
    background-color: var(--light-color);
    border-radius: 5px;
    width: 30%;
}

.stat span {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.checkbox {
    display: flex;
    align-items: center;
}

.checkbox input {
    width: auto;
    margin-right: 10px;
}

.checkbox label {
    margin-bottom: 0;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #666;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

#registration-status {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Admin Panel Styles */
.admin-panel {
    background-color: #f8f9fa;
}

.admin-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    background-color: transparent;
    color: var(--dark-color);
    padding: 10px 20px;
    margin-right: 5px;
    border: none;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: var(--light-color);
}

.action-btn {
    padding: 5px 10px;
    margin-right: 5px;
    font-size: 14px;
}

.promote-btn {
    background-color: var(--success-color);
}

.remove-btn {
    background-color: var(--danger-color);
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: var(--danger-color);
}

#confirmation-message {
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats {
        flex-direction: column;
    }
    
    .stat {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
}

.import-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

#import-json {
    margin-bottom: 10px;
}

/* Peakbook Tab Styles */
#peakbook-tab table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}
#peakbook-tab th, #peakbook-tab td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
#peakbook-tab th {
    background-color: #f2f2f2;
}