/* =========================
   Global Styles
========================= */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f3f4f6;
    color: #1f2937;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

/* =========================
   Header
========================= */
h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #111827;
}

/* =========================
   Form Card
========================= */
.form-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-end;
}

/* Form group */
.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Labels */
label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

/* =========================
   Multi-select Dropdown
========================= */
select[multiple] {
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    min-height: 150px;
    transition: all 0.3s ease;
    cursor: pointer;
}

select[multiple]:hover {
    border-color: #3b82f6;
}

select[multiple]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
    outline: none;
}

/* Improve option spacing */
select[multiple] option {
    padding: 8px;
}

/* =========================
   Buttons
========================= */
.form-group.buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* Base button */
button {
    cursor: pointer;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

/* Add League */
.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

/* Export */
.btn-export {
    background-color: #10b981;
    color: white;
}

.btn-export:hover {
    background-color: #059669;
    transform: translateY(-1px);
}

/* Clear */
.btn-clear {
    background-color: #ef4444;
    color: white;
}

.btn-clear:hover {
    background-color: #b91c1c;
    transform: translateY(-1px);
}

/* =========================
   Table Card
========================= */
.table-card {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    animation: fadeIn 0.4s ease;
}

/* Header */
thead {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    color: white;
}

/* Cells */
th, td {
    padding: 12px 15px;
    text-align: left;
    font-size: 0.95rem;
}

/* Zebra stripes */
tbody tr:nth-child(odd) {
    background-color: #f9fafb;
}

tbody tr:nth-child(even) {
    background-color: #ffffff;
}

/* Row hover */
tbody tr {
    transition: background 0.2s ease, transform 0.15s ease;
}

tbody tr:hover {
    background-color: #e0f2fe;
    transform: translateX(3px);
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
    .form-card {
        flex-direction: column;
        align-items: stretch;
    }

    .form-group {
        width: 100%;
    }

    .form-group.buttons {
        justify-content: flex-start;
    }

    button {
        width: 100%;
    }
}

/* =========================
   Animations
========================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
