/* DLS Calculator Specific Styles */
.dls-container {
    max-width: 950px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Inter', sans-serif;
}

.dls-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dls-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: #fff !important;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.dls-header h1 span {
    color: var(--amber);
}

.dls-header p {
    color: var(--muted) !important;
    font-size: 1.1rem;
}

.dls-card {
    background: var(--panel2);
    border: 1px solid rgba(255, 183, 3, 0.15); /* amber border */
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Match Type Selector */
.match-type-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.dls-card h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--gold);
}

.radio-card {
    cursor: pointer;
    position: relative;
    flex: 1;
    min-width: 140px;
}

.radio-card input { display: none; }

.radio-card .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: center;
}

.radio-card .title { font-size: 1.1rem; font-weight: 600; color: #fff !important; margin-bottom: 0.2rem; }
.radio-card .desc { font-size: 0.8rem; color: var(--muted) !important; }
.radio-card input:checked + .card-content { border-color: var(--amber); background: rgba(255, 183, 3, 0.1); }
.radio-card:hover .card-content { background: rgba(255, 255, 255, 0.05); }
.radio-card input:checked + .card-content .title { color: var(--amber); }

.custom-settings {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Target Summary */
.target-summary-card {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 183, 3, 0.3);
    background: rgba(251, 133, 0, 0.05);
}

.target-display { display: flex; align-items: center; gap: 1rem; }
.target-label { font-size: 1.2rem; font-weight: 700; color: var(--amber); text-transform: uppercase; letter-spacing: 1px; font-family: 'Orbitron', sans-serif; }

.target-value-box {
    background-color: var(--amber);
    color: #000 !important;
    font-size: 2.2rem;
    font-weight: 800;
    padding: 0.3rem 1.2rem;
    border-radius: 8px;
    min-width: 90px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 183, 3, 0.3);
    transition: all 0.3s ease;
    font-family: 'Bebas Neue', sans-serif;
}

.target-subtext { font-size: 1rem; color: var(--amber); }
.penalty-box { display: flex; align-items: center; gap: 0.8rem; color: #fff !important; }
.penalty-box label { font-size: 0.9rem; text-align: right; max-width: 200px; line-height: 1.3; }
.penalty-box input, .input-line input, .stoppage-table input {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid rgba(255, 183, 3, 0.5);
    border-radius: 4px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}
.penalty-box input { width: 60px; padding: 0.4rem; font-size: 1.1rem; }

/* Grids */
.dls-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.team-card h2 {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.header-inputs { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.input-line { display: flex; justify-content: flex-end; align-items: center; gap: 0.8rem; }
.input-line.single-input { margin-bottom: 2.5rem; }
.input-line label { font-size: 0.9rem; color: var(--muted) !important; text-align: right; line-height: 1.2; }
.input-line input { width: 70px; padding: 0.3rem; font-size: 1rem; }

/* Stoppage Tables */
.stoppage-container {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stoppage-table { width: 100%; border-collapse: separate; border-spacing: 0 4px; margin-bottom: 0.8rem; }
.stoppage-table th { font-size: 0.8rem; color: var(--muted) !important; font-weight: 500; text-align: center; line-height: 1.2; padding-bottom: 0.4rem; }
.stoppage-table td { padding: 0 3px; }
.stoppage-table input { width: 100%; padding: 0.25rem; font-size: 0.9rem; }

.add-row-btn {
    width: 100%;
    padding: 0.4rem;
    background: transparent !important;
    color: var(--muted) !important;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.add-row-btn:hover { background: rgba(255, 255, 255, 0.05); color: #fff !important; }

.totals-line { display: flex; justify-content: flex-end; align-items: center; gap: 0.8rem; font-size: 0.9rem; color: #fff !important; }
.green-box {
    background-color: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.2rem 1rem;
    border-radius: 4px;
    border: 1px solid #22c55e;
    min-width: 50px;
    text-align: center;
}

/* Actions */
.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 1rem;
}

.par-score-actions { display: flex; flex-direction: column; gap: 0.4rem; }
.action-label { font-size: 0.85rem; color: var(--muted) !important; }
.btn-group { display: flex; gap: 0.5rem; }

.system-actions {
    display: flex;
    gap: 1rem;
}

.pulse-btn {
    animation: pulse-amber 2s infinite;
}

.secondary-btn, .ghost-btn, .primary-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.secondary-btn { background: #fff !important; color: #000 !important; border: 1px solid #ccc; }
.secondary-btn:hover { background: #f1f5f9; }
.ghost-btn { background: transparent !important; color: var(--muted) !important; border: 1px solid rgba(255,255,255,0.2); }
.ghost-btn:hover { background: rgba(255,255,255,0.05); color: #fff !important; }
.primary-btn { background: var(--amber) !important; color: #000 !important; border: none !important; font-size: 1rem; padding: 0.6rem 1.5rem; }
.primary-btn:hover { background: var(--gold); transform: translateY(-1px); }

@keyframes pulse-amber {
    0% { box-shadow: 0 0 0 0 rgba(255, 183, 3, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(255, 183, 3, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 183, 3, 0); }
}

@media (max-width: 768px) {
    .dls-grid-layout { grid-template-columns: 1fr; }
    .target-summary-card { flex-direction: column; gap: 1rem; }
    .action-buttons { flex-direction: column; align-items: stretch; gap: 1.2rem; }
    .system-actions { display: flex; flex-direction: column; gap: 0.8rem; }
}
