body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f7f7f7;
    color: #333;
}

.container {
    position: relative;
    padding: 20px;
    max-width: 600px;
    margin: auto;
}

header h1 {
    font-size: 1.8em;
    margin-bottom: 0.2em;
    text-align: center;
}

header {
    margin-top: 0em;
}

.provider {
    text-align: center;
    font-size: 0.9em;
    color: #666;
}

.price {
    text-align: center;
    margin: 20px 0;
}

.price .source {
    font-size: 0.85em;
    color: #555;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.button {
    padding: 15px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.primary {
    background-color: #2e7d32;
    color: white;
}

.primary:hover {
    background-color: #1b5e20;
}

.secondary {
    background-color: #cccccc;
    color: #333;
}

.secondary:hover {
    background-color: #b0b0b0;
}


.neutral {
    background-color: #e0e0e0;
    color: #333;
}

.neutral:hover {
    background-color: #cfcfcf;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.form label {
    font-weight: bold;
    margin-top: 10px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
    padding: 10px;
    font-size: 1em;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.required {
    color: red;
}

.checkbox-group {
    margin: 15px 0;
}

.checkbox-group label {
    font-weight: normal;
}


.button.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.button .emoji {
    display: inline-block;
    font-size: 4em;
    margin-top: 5px;
}


#loginForm {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
}

#loginForm.show {
    max-height: 500px; /* dostatečná výška pro obsah */
    opacity: 1;
}

.login-form .form-row {
    margin-bottom: 15px;
}

.login-form input,
.login-form button {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    font-size: 1rem;
}


.loading-text {
  font-weight: bold;
  font-size: 1.2em;
  color: #444;
  animation: blink 1.5s infinite ease-in-out;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.user-panel {

    top: 20px;
    right: 20px;
    background-color: #f2f2f2;
    padding: 10px 15px;
    border-radius: 5px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.user-panel .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-panel .user-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.user-panel .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ccc;
}


.user-panel .logout-button {
    font-size: 0.9em;
    color: #c00;
    text-decoration: none;
    border: 1px solid #c00;       /* červený rámeček */
    padding: 4px 8px;             /* vnitřní odsazení */
    border-radius: 4px;           /* zaoblení rohů */
    transition: background 0.2s, color 0.2s; /* plynulý efekt při hoveru */
}

.user-panel .logout-button:hover {
    background-color: #c00;
    color: white;
}


.user-panel .login-button {
    font-size: 0.9em;
    color: #1b5e20;
    text-decoration: none;
    border: 1px solid #1b5e20;       /* červený rámeček */
    padding: 4px 8px;             /* vnitřní odsazení */
    border-radius: 4px;           /* zaoblení rohů */
    transition: background 0.2s, color 0.2s; /* plynulý efekt při hoveru */
}

.user-panel .login-button:hover {
    background-color: #1b5e20;
    color: white;
}