/* Dashboard Styles */

.dashboard-page {
    padding: 40px 0 80px;
    min-height: calc(100vh - 200px);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.dashboard-header h1 {
    font-size: 2.5em;
    color: var(--text-color);
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-value {
    font-size: 3em;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    color: var(--text-light);
    font-size: 1.1em;
    font-weight: 500;
}

/* Registrations List */
.registrations-section {
    margin-top: 40px;
}

.registrations-list {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.registration-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.registration-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.registration-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.registration-header h3 {
    font-size: 1.3em;
    color: var(--text-color);
    margin: 0;
}

.registration-status {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.registration-info {
    margin-bottom: 15px;
}

.registration-info p {
    margin: 5px 0;
    color: var(--text-light);
    font-size: 0.9em;
}

.registration-info strong {
    color: var(--text-color);
}

.registration-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Data Table */
.data-table-wrapper {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-top: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--bg-light);
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.data-table tbody tr {
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: var(--bg-light);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Form Card */
.form-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Detail Card */
.detail-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.detail-card h3 {
    font-size: 1.3em;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.detail-card dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px 30px;
}

.detail-card dt {
    font-weight: 600;
    color: var(--text-light);
}

.detail-card dd {
    color: var(--text-color);
    margin: 0;
}

/* Tournament Item */
.tournament-item {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.tournament-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.tournament-info h3 {
    font-size: 1.2em;
    color: var(--text-color);
    margin-bottom: 8px;
}

.tournament-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.tournament-actions {
    display: flex;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .header-actions .btn {
        width: 100%;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .form-card {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .tournament-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tournament-actions {
        width: 100%;
    }
    
    .tournament-actions .btn {
        flex: 1;
    }
    
    .data-table-wrapper {
        overflow-x: auto;
    }
    
    .detail-card dl {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

