/* Poin system specific styles */
.poin-container {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
    min-height: 100vh;
    transition: background 1s ease;
}

/* Dynamic backgrounds based on top member */
.poin-container[data-top-member="1"] {
    background: linear-gradient(135deg, #232526 0%, #ff6b6b 100%);
}

.poin-container[data-top-member="2"] {
    background: linear-gradient(135deg, #232526 0%, #4ecdc4 100%);
}

.poin-container[data-top-member="3"] {
    background: linear-gradient(135deg, #232526 0%, #45b7d1 100%);
}

.poin-container[data-top-member="4"] {
    background: linear-gradient(135deg, #232526 0%, #f093fb 100%);
}

.poin-container[data-top-member="5"] {
    background: linear-gradient(135deg, #232526 0%, #4facfe 100%);
}

.poin-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.visualization-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background: #232526;
    color: #f1f1f1;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #d1d1d4;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

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

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

.form-group input,
.form-group select {
    background: #181818;
    color: #f1f1f1;
    width: 100%;
    padding: 12px;
    border: 2px solid #d1d1d4;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #d1d1d4;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chart-container {
    position: relative;
    height: 300px;
    margin-top: 20px;
}

.leaderboard {
    max-height: 400px;
    overflow-y: auto;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #232526;
    color: #f1f1f1;
    border-left: 4px solid #232526;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: #414345;
    transform: translateX(5px);
}

.leaderboard-item:nth-child(1) {
    border-left-color: #ffd700;
    background: linear-gradient(90deg, #ffd90086 0%, #ffd900 100%);
}

.leaderboard-item:nth-child(2) {
    border-left-color: #c0c0c0;
    background: linear-gradient(90deg, #c0c0c094 0%, #c0c0c0 100%);
}

.leaderboard-item:nth-child(3) {
    border-left-color: #cd7f32;
    background: linear-gradient(90deg, #cd803285 0%, #cd7f32 100%);
}

.rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: #d1d1d4;
    margin-right: 15px;
    min-width: 30px;
}

.member-info {
    flex: 1;
}

.member-info .name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #f1f1f1;
}

.member-info .points {
    color: #d1d1d4;
    font-size: 0.9rem;
}

.medal {
    color: #ffd700;
    font-size: 1.5rem;
}

.no-data {
    text-align: center;
    color: #d1d1d4;
    font-style: italic;
    padding: 20px;
}

.quick-actions {
    text-align: center;
    margin-top: 30px;
}

/* Animation for new data */
.leaderboard-item.new-entry {
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.leaderboard-item.updated {
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Chart styling */
.chart-card {
    min-height: 400px;
}

/* Point assignment form styling */
.assign-form {
    background: #232526;
    color: #f1f1f1;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 500px;
    margin: 0 auto;
}

.assign-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #d1d1d4;
}

/* Responsive design */
@media (max-width: 768px) {
    .poin-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        background: #232526;
        color: #f1f1f1;
        padding: 20px;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .leaderboard-item {
        background: #232526;
        color: #f1f1f1;
        padding: 12px;
    }
    
    .rank {
        font-size: 1.2rem;
        margin-right: 10px;
        min-width: 25px;
    }
    
    .member-info .name {
        font-size: 1rem;
    }
    
    .medal {
        font-size: 1.2rem;
    }
}

/* Real-time update indicator */
.update-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #232526;
    color: #d1d1d4;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.update-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #232526;
    border-top: 3px solid #d1d1d4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

