/* SIND Demo Website - Danish Styling */

:root {
    --sind-primary: #c1001f;
    --sind-red: #c1001f;
    --sind-secondary: #5a6268;
    --sind-success: #afb690;
    --sind-danger: #dc3545;
    --sind-info: #17a2b8;
    --sind-warning: #ffc107;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
}

/* Header Styling */
header.bg-primary {
    background: linear-gradient(135deg, var(--sind-primary) 0%, #a0001a 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Card Styling */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-header {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: none;
    padding: 1rem 1.25rem;
}

.card-header.bg-primary {
    background: linear-gradient(135deg, var(--sind-primary) 0%, #a0001a 100%);
}

.card-header.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%);
}

.card-header.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.card-header.bg-dark {
    background: linear-gradient(135deg, #343a40 0%, #23272b 100%);
}

.card-header.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

/* Navigation Tabs */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    color: #495057;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: var(--sind-red);
    color: var(--sind-red);
}

.nav-tabs .nav-link.active {
    color: var(--sind-red);
    background-color: transparent;
    border-bottom-color: var(--sind-red);
}

/* Toggle Switches */
.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    cursor: pointer;
}

.form-switch .form-check-input:checked {
    background-color: var(--sind-success);
    border-color: var(--sind-success);
}

.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(193, 0, 31, 0.25);
}

.form-check-label {
    cursor: pointer;
    font-size: 1rem;
}

/* Scenario Display */
.scenario-display {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--sind-red);
    padding: 1.5rem;
    border-radius: 8px;
}

.scenario-display .scenario-name {
    color: var(--sind-red);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.scenario-display .scenario-description {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.scenario-display .scenario-flow {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Audio Player Container */
.audio-player-container {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.audio-item {
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.audio-item audio {
    margin-top: 0.25rem;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s;
}

.btn-success {
    background-color: var(--sind-success);
    border-color: var(--sind-success);
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-success:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Placeholder Boxes for Screenshots/Videos */
.placeholder-box {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border: 2px dashed #adb5bd;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.placeholder-box p {
    margin: 0.5rem 0;
}

/* Screenshot Styling */
#frontend img {
    border: 1px solid #dee2e6;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

#frontend img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

#frontend .shadow {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Statistics Cards */
.card .list-unstyled li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.card .list-unstyled li:last-child {
    border-bottom: none;
}

.card .list-unstyled li i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    margin-top: 4rem;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header p.lead {
        font-size: 1rem;
    }

    .nav-tabs .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }

    .card-header h3 {
        font-size: 1.5rem;
    }

    .form-check-label {
        font-size: 0.9rem;
    }

    .scenario-display {
        padding: 1rem;
    }

    .audio-player-container {
        padding: 1rem;
    }
}

/* Icons */
.bi {
    vertical-align: middle;
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* Loading States */
.btn .bi-hourglass-split {
    animation: spin 1s linear infinite;
}

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

/* Service-specific Colors */
#dlt .card-header.bg-primary {
    background: linear-gradient(135deg, #c1001f 0%, #a0001a 100%);
}

#medicin .card-header.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%);
}

#opentalk .card-header.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

/* Technical Details Section */
section.border-top {
    padding-top: 2rem;
    margin-top: 3rem;
}

section h2 {
    color: #343a40;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Enhanced Focus States for Accessibility */
.form-check-input:focus,
.btn:focus {
    outline: 2px solid var(--sind-red);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .nav-tabs,
    .btn,
    footer {
        display: none;
    }

    .card {
        break-inside: avoid;
    }
}
