/* -----------------------------------
   GLOBAL
----------------------------------- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f2f2f7;
    color: #1c1c1e;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* -----------------------------------
   PANEL HEADER
----------------------------------- */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 18px 22px;
    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    flex-wrap: wrap;
    gap: 12px;
}

.panel-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #111;
}

/* -----------------------------------
   BUTTONS
----------------------------------- */
.btn-secondary,
.btn-small,
.btn-danger {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-secondary {
    background: #e5e5ea;
    color: #000;
}
.btn-secondary:hover {
    background: #d1d1d6;
}

.btn-small {
    background: #007aff;
    color: white;
}
.btn-small:hover {
    background: #0063cc;
}

.btn-danger {
    background: #ff3b30;
    color: white;
}
.btn-danger:hover {
    background: #d92a21;
}

.btn-small:active,
.btn-secondary:active,
.btn-danger:active {
    transform: scale(0.97);
}

/* -----------------------------------
   PANEL BOX
----------------------------------- */
.panel-box {
    margin-top: 22px;
    background: #ffffff;
    padding: 22px;
    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    overflow-x: auto;
}

/* -----------------------------------
   TABLE (DESKTOP)
----------------------------------- */
.panel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.panel-table th,
.panel-table td {
    padding: 14px;
    border-bottom: 1px solid #e5e5ea;
    text-align: left;
    word-break: break-word;
}

.panel-table th {
    background-color: #f2f2f7;
    font-weight: 600;
    color: #3a3a3c;
    cursor: pointer;
    user-select: none;
}

.panel-table tr:hover {
    background: #fafafa;
}

/* -----------------------------------
   RESPONSIVE TABLE (MOBILE)
----------------------------------- */
@media (max-width: 768px) {

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .panel-header form,
    .panel-header a {
        width: 100%;
    }

    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    input[type="text"] {
        width: 100% !important;
    }

    .panel-table thead {
        display: none;
    }

    .panel-table,
    .panel-table tbody,
    .panel-table tr,
    .panel-table td {
        display: block;
        width: 100%;
    }

    .panel-table tr {
        margin-bottom: 16px;
        border: 1px solid #e5e5ea;
        border-radius: 16px;
        padding: 14px;
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .panel-table td {
        padding: 10px 6px;
        border: none;
        position: relative;
    }

    .panel-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6e6e73;
        display: block;
        margin-bottom: 4px;
    }

    .btn-small {
        margin-top: 10px;
        white-space: nowrap;
    }
}

/* -----------------------------------
   FORMULARZE – iOS STYLE
----------------------------------- */
.form-container {
    background: #ffffff;
    padding: 22px;
    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    margin-top: 22px;
}

.form-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
}

.ios-form .form-group {
    margin-bottom: 18px;
}

.ios-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #3a3a3c;
}

.ios-form input,
.ios-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #d1d1d6;
    background: #f2f2f7;
    font-size: 16px;
    transition: border 0.2s ease, background 0.2s ease;
}

.ios-form input:focus,
.ios-form textarea:focus {
    border-color: #007aff;
    background: #ffffff;
    outline: none;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: #007aff;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover {
    background: #0063cc;
}

.btn-submit:active {
    transform: scale(0.97);
}

/* -----------------------------------
   LOGIN PANEL
----------------------------------- */
.login-container {
    max-width: 420px;
    margin: 40px auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.login-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #111;
}

.login-error {
    background: #fdeaea;
    color: #c62828;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.login-form .form-group {
    margin-bottom: 18px;
}

.login-form input {
    font-size: 17px;
}

@media (max-width: 600px) {
    .login-container {
        margin: 20px;
        padding: 20px;
    }

    .login-title {
        font-size: 22px;
    }
}
.info-box {
    background:#eef5ff;
    border:1px solid #bcd3ff;
    padding:15px;
    border-radius:8px;
    margin-bottom:20px;
    font-size:1.1em;
}
.free-slots-box {
    background:#e8ffe8;
    border:1px solid #9cd89c;
    padding:10px;
    border-radius:8px;
    margin-bottom:20px;
    font-size:1.1em;
}

