/*
 Theme Name:   Astra Child
 Template:     astra
*/

/* ==========================================================================
   harjagrester.nu - App Layout
   ========================================================================== */

/* 1. Systemfixar & Nollställning */
.site-header, .site-footer {
    display: none !important;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #ffffff;
    overflow-x: hidden;
    /* Döljer scrollbar men tillåter touch-scroll */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

/* 2. Huvudbehållare */
.container-rester {
    min-height: 100vh;
    /* Använd dvh (dynamic viewport height) om webbläsaren stöder det, annars vh */
    min-height: 100dvh; 
    max-width: 100%;
    margin: 0;
    padding: 20px;
    background-color: #ffffff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Detta trycker isär loggan i toppen och logga ut i botten */
    justify-content: space-between; 
}

/* 3. Logotyp */
.app-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.app-logo img {
    width: 35vw;
    max-width: 120px;
    height: auto;
}

/* 4. Status & Rubriker */
.status-wrapper {
    text-align: center;
    width: 100%;
    max-width: 500px;
    flex-grow: 1; /* Låter mittenpartiet ta upp ledig plats */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.status-wrapper h1 {
    font-size: 1.6rem;
    margin: 10px 0;
    color: #333;
}

.logged-in-as {
    font-size: 0.85rem;
    color: #666;
    margin: 5px 0 15px 0;
    background: #f0f0f0;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    align-self: center;
}

.check-icon, .cross-icon {
    font-size: 105px;
    line-height: 1;
    margin-bottom: 10px;
}

/* Animation */
.pulse {
    display: inline-block;
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 5. Inloggningsformulär */
#loginform {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    max-width: 280px;
    margin: 10px auto;
}

#loginform label {
    font-size: 0.8rem;
    color: #666;
}

#loginform input[type="text"], 
#loginform input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    font-size: 16px; /* Förhindrar zoom på iOS */
}

#loginform input[type="submit"] {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 25px;
    font-weight: bold;
    margin-top: 10px;
    font-size: 1rem;
}

/* 6. Länkar */
.forgot-password {
    margin-top: 10px;
}

.forgot-password a, .logout-link {
    color: #888 !important;
    text-decoration: none;
    font-size: 0.85rem;
}

/* 7. Rester-lista (Inloggat läge) */
.rester-lista {
    width: 100%;
    max-width: 600px;
    flex-grow: 2;
    overflow-y: auto;
    padding-bottom: 20px;
}

.rest-item {
    background: #fdfdfd;
    border: 1px solid #eee;
    margin-bottom: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.rest-item summary {
    padding: 15px;
    font-weight: 600;
    outline: none;
    list-style: none;
}

.rest-content {
    padding: 15px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.teams-button {
    display: block;
    text-align: center;
    padding: 10px;
    background-color: #464EB8;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 10px;
    font-weight: bold;
}

/* 8. Media Query för iPhone 11 och liknande (Kompakt läge) */
/* 
@media (max-height: 850px) {
    .container-rester {
        padding: 10px 15px;
    }
    
    .app-logo img {
		margin-top:1rem;
        max-width: 190px; 
    }

    .status-wrapper h1 {
       font-size: 1.3rem;
    }

    .check-icon, .cross-icon {
        font-size: 105px;
    }

    #loginform input[type="text"], 
    #loginform input[type="password"] {
        padding: 8px;
    }
    
    #loginform input[type="submit"] {
        padding: 10px;
    }
}
*/