/* Custom styles for Höngger Meisterschaft */

/* General styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    padding-top: 0;
    padding-bottom: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles */
.header {
    background-color: #343a40;
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 4px solid #dc3545;
}

.header h1 {
    font-weight: 700;
    margin: 0;
    font-size: 2.2rem;
}

/* Navigation styles */
.navbar {
    background-color: #343a40 !important;
    padding: 15px 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: white !important;
}

.navbar-nav .nav-link.active {
    color: white !important;
    border-bottom: 2px solid #dc3545;
}

/* Form styles */
.form-container {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-container h2 {
    color: #343a40;
    margin-bottom: 25px;
    border-bottom: 2px solid #dc3545;
    padding-bottom: 10px;
    font-weight: 600;
}

.form-label {
    font-weight: 500;
    color: #495057;
}

.form-control, .form-select {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 10px 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background-color: #dc3545;
    border-color: #dc3545;
    padding: 10px 20px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Table styles */
.table-container {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow-x: auto;
}

.table-container h2 {
    color: #343a40;
    margin-bottom: 25px;
    border-bottom: 2px solid #dc3545;
    padding-bottom: 10px;
    font-weight: 600;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}

.table thead th {
    background-color: #343a40;
    color: white;
    border: none;
    padding: 12px 15px;
    font-weight: 500;
}

.table tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

/* Score display */
.score-display {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.score-item {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background-color: #e9ecef;
    font-weight: 500;
}

.score-item.high {
    /*background-color: #28a745;*/
    accent-color: #28a745;
   /* color: white;*/
}

.score-item.medium {
    /*background-color: #ffc107;*/
    accent-color: #ffc107;
    color: #212529;
}

.score-item.low {
    /*background-color: #dc3545;*/
    accent-color: #dc3545;
    color: white;
}

.total-score {
    font-weight: 700;
    font-size: 1.1rem;
    color: #343a40;
}

/* Footer styles */
.footer {
    background-color: #343a40;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

.footer p {
    margin-bottom: 0;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .form-container, .table-container {
        padding: 20px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    /* Improve form layout on small screens */
    .form-container .row {
        margin-right: 0;
        margin-left: 0;
    }

    /* Make table more readable on small screens */
    .table-responsive {
        border: 0;
    }

    .score-display {
        flex-wrap: wrap;
    }

    .score-item {
        width: 25px;
        height: 25px;
        line-height: 25px;
        font-size: 0.9rem;
    }

    /* Adjust buttons for better touch targets */
    .btn {
        padding: 8px 16px;
        margin-bottom: 5px;
    }

    /* Improve filter controls layout */
    .d-flex.justify-content-end {
        flex-wrap: wrap;
    }

    .btn-group {
        margin-bottom: 5px;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    /* Stack form fields */
    .form-container .col-md-6 {
        padding-right: 0;
        padding-left: 0;
    }

    /* Simplify table for very small screens */
    .table thead th, .table tbody td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    /* Hide some columns on very small screens */
    .table-responsive table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    /* Adjust footer */
    .footer {
        padding: 20px 0;
    }

    .footer p {
        font-size: 0.9rem;
    }
}
