/* Location: assets/style.css */

.fd-container {
    width: 100%;
    overflow-x: auto;
    margin: 25px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.fd-comp-title {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}

.fd-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

.fd-table th,
.fd-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #ececec;
    font-size: 14px;
    vertical-align: middle;
}

.fd-table th {
    background: #111;
    color: #fff;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .6px;
}

.fd-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.fd-table tbody tr {
    transition: background .2s ease;
}

.fd-table tbody tr:hover {
    background: #f1f6ff;
}

.fd-badge {
    width: 28px;
    height: 28px;
    margin-right: 10px;
    object-fit: contain;
    flex-shrink: 0;
}

.fd-flex {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fd-team-name {
    white-space: nowrap;
}

.fd-text-center {
    text-align: center;
}

.fd-text-right {
    text-align: right;
}

.fd-score {
    display: inline-block;
    min-width: 38px;
    padding: 4px 10px;
    border-radius: 5px;
    background: #222;
    color: #fff;
    font-weight: 700;
    font-family: monospace;
    text-align: center;
}

.fd-error {
    margin: 15px 0;
    padding: 12px;
    background: #fff5f5;
    color: #c62828;
    border-left: 4px solid #d32f2f;
    border-radius: 4px;
}

/* Competition Qualification Colours */

.fd-row-ucl {
    border-left: 4px solid #0057b8 !important;
    background: #f2f7ff;
}

.fd-row-uel {
    border-left: 4px solid #ff7a00 !important;
    background: #fff8f2;
}

.fd-row-rel {
    border-left: 4px solid #d32f2f !important;
    background: #fff4f4;
}

/* Form */

.fd-form-container {
    display: inline-flex;
    gap: 4px;
}

.fd-form-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.fd-form-w {
    background: #2e7d32;
}

.fd-form-d {
    background: #f9a825;
}

.fd-form-l {
    background: #c62828;
}

/* Mobile */

@media (max-width: 768px) {

    .fd-table th,
    .fd-table td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .fd-comp-title {
        font-size: 20px;
    }

    .fd-badge {
        width: 22px;
        height: 22px;
        margin-right: 6px;
    }

    .fd-score {
        min-width: 32px;
        font-size: 12px;
    }

    .fd-form-badge {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
}