/* /static/css/styles.css */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

.body-content {
    min-height: calc(100% - 60px);
    padding-bottom: 120px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 20px;
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
}

h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: #343a40;
}

.btn-primary {
    background-color: #0056b3;
    border: none;
}

.user-info, .medals, .zones {
    background-color: #e9ecef;
    border-radius: 5px;
    padding: 15px;
    margin-top: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.user-info-header {
    background-color: transparent;
    padding: 0;
    margin-bottom: 15px;
    border: none;
}

.user-info-header h2 {
    margin: 0;
    padding: 0;
}

.user-info-header .badge {
    background-color: #6c757d;
}

.user-info-card .card-body {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: none;
    margin-bottom: 20px;
}

.user-info-card p {
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Specifik styling för user info kort för att minska avståndet mellan raderna */
.tight-text p {
    margin-bottom: 2px; /* Minska marginalen mellan paragraferna */
    line-height: 1.2; /* Minska radavståndet */
}

.card {
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
}

.card-body {
    padding: 20px;
    background-color: #f8f9fa;
    line-height: 1.6;
}

.footer {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.5) 100%);
    color: #6c757d;
}

.user-status-icon {
    width: 20px;
    height: 35px;
    margin-left: 10px;
}

.switch-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

::placeholder {
    color: #6c757d;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #6c757d;
}

::-ms-input-placeholder {
    color: #6c757d;
}

.medals-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.medals .col-6, .medals .col-md-2 {
    flex: 0 0 16.66%;
    max-width: 16.66%;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .medals .col-6, .medals .col-md-2 {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }
}

.medal-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin: 10px;
}

.zones-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.zones .col-12, .zones .col-md-4 {
    flex: 0 0 33.33%;
    max-width: 33.33%;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .zones .col-12, .zones .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.zone-card {
    width: 100%;
    margin: 10px 5px;
}

#user-data-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#user-data-container .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    #user-data-container .col-md-4 {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }
}
