/* Ogólne ustawienia */
body {
    margin: 0;
    font-family: "Segoe UI", Roboto, sans-serif;
    background: #f9fafc;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Kontener główny */
.container {
    width: 100%;
    max-width: 400px;
    margin: auto;
    padding: 2rem;
    background: #ffffff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    margin-top: 40px;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo img {
    width: 70%;
    max-width: 150px !important;
    height: auto;
    object-fit: contain;
}

.info {
    background-color: #ffffff;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    font-family: sans-serif;
}

.info h2 {
    margin-top: 0;
    color: #e50000;
    font-size: 24px;
    font-weight: bold;
}

.info p {
    font-size: 18px;
    color: #e50000;
    font-weight: bold;
    margin-bottom: 0;
}


/* INFO 
.info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.info img {
    width: 80%;
    max-width: 400px !important;
    height: auto;
    object-fit: contain;
}*/

/* Nagłówki */
h1, h2 {
    text-align: center;
    color: #1a73e8;
    margin-bottom: 1rem;
}

/* Temat spotkania */
.meeting-topic {
    background: #e8f0fe;
    border-left: 5px solid #1a73e8;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-size: 1.2rem;
    
}

/* Formularze */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="text"],
input[type="email"] {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #1a73e8;
    outline: none;
}

/* Przycisk */
button {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #155ec9;
}

.btn-secondary {
    background-color: #ccc;
    color: #333;
}

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

/* Komunikaty */
.message {
    background-color: #ffe0e0;
    color: #b00020;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Stopka */
.footer {
    margin-top: auto;
    text-align: center;
    padding: 1rem;
    font-size: 0.9em;
    background-color: #f1f3f4;
    color: #666;
    border-top: 1px solid #ddd;
}

.footer a {
    color: #1a73e8;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #1a73e8;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden-on-load {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* RESPONSYWNOŚĆ */

/* Tablety i mniejsze */
@media (max-width: 820px) {
    .container {
        padding: 1.5rem;
        margin: auto;
        width: fit-content;

    }

    .logo img {
        max-width: 150px;
    }
    .info img {
        max-width: 250px;
    }
}

/*
@media (max-width: 480px) {
    body {
        background-color: red !important;
    }
}*/

/* Telefony */
@media (max-width: 450px) {
    .container {
        padding: 1.5rem;
        margin: 0rem;
        margin-top: 0px;
        border-radius: 0px;
        width: fit-content;
        
    }

    .logo img {
        max-width: 120px;
    }

    .info img {
        max-width: 350px;
    }

    .meeting-topic {
        font-size: 1rem;
    }

    button {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
}

/* DARK MODE */
@media (prefers-color-scheme: dark) {
    body {
        background: #121212;
        color: #e0e0e0;
    }

    .container {
        background: #1e1e1e;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
    }

    input, button {
        background-color: #2c2c2c;
        color: #e0e0e0;
        border-color: #444;
    }

    .message {
        background-color: #4e1f1f;
        color: #f88;
    }

    .meeting-topic {
        background: #2a3b5d;
        border-left: 5px solid #81a9f1;
    }

    .footer {
        background: #1b1b1b;
        border-top: 1px solid #333;
    }
}

/* {
    outline: 1px solid rgba(255, 0, 0, 0.3);
}*/
