body {
    font-family: Arial, sans-serif;
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 20px;
    margin: 0;
}

h1 {
    color: #f39c12;
    margin-bottom: 30px;
}

h2 {
    color: #3498db;
    margin-bottom: 15px;
}

button {
    background-color: #27ae60;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 5px;
    font-size: 14px;
}

button:hover {
    background-color: #229954;
}

#scoreboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.player {
    background-color: #34495e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
}

.player-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.player-avatar {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 3px solid #f39c12;
    background-color: #2c3e50;
    object-fit: cover;
}

.player-avatar:hover {
    border-color: #e74c3c;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.materials {
    text-align: left;
    margin: 15px 0;
}

.material {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #7f8c8d;
}

.material-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.material-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px;
}

.material-name {
    font-weight: bold;
    color: #e74c3c;
}

.material-count {
    color: #f1c40f;
    font-weight: bold;
}

.total-score {
    font-size: 18px;
    font-weight: bold;
    color: #f39c12;
    margin-top: 15px;
}

.calculate-score {
    background-color: #e74c3c;
}

.calculate-score:hover {
    background-color: #c0392b;
}

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

.modal-content {
    background-color: #34495e;
    padding: 30px;
    border-radius: 15px;
    width: 400px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.server-info {
    color: #bdc3c7;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: bold;
}

#server-name {
    color: #f39c12;
    font-weight: bold;
}

.current-time {
    color: #95a5a6;
    font-size: 14px;
    margin-bottom: 20px;
    font-style: italic;
}

.player-info {
    flex-grow: 1;
}

.player-status {
    margin-top: 5px;
}

.status-indicator {
    font-size: 14px;
    font-weight: bold;
}

.status-indicator.online {
    color: #27ae60;
}

.status-indicator.offline {
    color: #e74c3c;
}

.player-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background-color: #2c3e50;
    border-radius: 8px;
    border: 1px solid #34495e;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #bdc3c7;
    margin-bottom: 3px;
}

.stat-value {
    display: block;
    font-weight: bold;
    color: #f39c12;
    font-size: 14px;
}

/* Form Styles */
.form-group {
    margin: 20px 0;
    text-align: left;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #7f8c8d;
    border-radius: 8px;
    background-color: #2c3e50;
    color: #ecf0f1;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

/* Avatar Preview */
.avatar-preview {
    margin: 20px 0;
    padding: 15px;
    background-color: #2c3e50;
    border-radius: 10px;
    border: 2px solid #3498db;
}

.avatar-preview h4 {
    color: #f39c12;
    margin-bottom: 10px;
}

#avatar-preview-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    border: 3px solid #f39c12;
    background-color: #34495e;
    object-fit: cover;
}

#avatar-preview-name {
    color: #3498db;
    font-weight: bold;
    margin-top: 10px;
    font-size: 18px;
}

/* Modal Buttons */
.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.create-btn {
    background-color: #27ae60;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
}

.create-btn:hover {
    background-color: #229954;
}

.cancel-btn {
    background-color: #e74c3c;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
}

.cancel-btn:hover {
    background-color: #c0392b;
}

/* Player Classifications */
.player-classifications {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.classification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: #2c3e50;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.classification:hover {
    transform: translateX(5px);
}

.class-icon {
    font-size: 24px;
    min-width: 30px;
    text-align: center;
}

.class-info {
    flex-grow: 1;
}

.class-name {
    display: block;
    font-weight: bold;
    font-size: 16px;
    color: #ecf0f1;
    margin-bottom: 2px;
}

.class-desc {
    display: block;
    font-size: 12px;
    color: #bdc3c7;
    font-style: italic;
}

/* Responsive design for classifications */
@media (max-width: 768px) {
    .player-classifications {
        gap: 8px;
    }
    
    .classification {
        padding: 8px;
        gap: 8px;
    }
    
    .class-icon {
        font-size: 20px;
        min-width: 25px;
    }
    
    .class-name {
        font-size: 14px;
    }
    
    .class-desc {
        font-size: 11px;
    }
}