/* ---------------------------
   FRONT: Formularz
--------------------------- */
#mgk-form-wrapper {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin: 20px auto;
}

#mgk-form-wrapper label {
    font-size: 14px;
}

.mgk-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mgk-form-group {
    flex: 1;
    min-width: 48%;
}

.mgk-form-group.full-width {
    width: 100%;
    min-width: 100%;
}

#mgk-reservation-form input[type="text"],
#mgk-reservation-form input[type="email"],
#mgk-reservation-form input[type="tel"],
#mgk-reservation-form input[type="date"],
#mgk-reservation-form textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

#mgk-reservation-form input[type="submit"] {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#mgk-reservation-form input[type="submit"]:hover {
    background-color: #0056b3;
}

#mgk-message {
    margin-top: 10px;
    padding: 10px 0;
}

#mgk-message p[style*="green"] {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 10px;
}

#mgk-message p[style*="red"] {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 10px;
}

#mgk-reservation-form input[type="text"]:focus,
#mgk-reservation-form input[type="email"]:focus,
#mgk-reservation-form input[type="tel"]:focus,
#mgk-reservation-form input[type="date"]:focus,
#mgk-reservation-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
    transition: all 0.3s ease;
}

.mgk-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.5);
}

.mgk-error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: -5px;
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    .mgk-form-row { flex-direction: column; }
    .mgk-form-group { min-width: 100%; }
}

/* ---------------------------
   FRONT: Kalendarz
--------------------------- */
#mgk-kalendarz {
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
}
#mgk-kalendarz .mgk-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
h2#mgk-month-title {
    font-size: 30px !important;
}
#mgk-kalendarz .mgk-nav button {
    color: #A85B00;
    border: 1px solid #A85B00;
    padding: 11px 18px;
    border-radius: 50px;
    background-color: transparent;
}
#mgk-kalendarz .mgk-nav button:hover {
    cursor: pointer;
    background-color: #f4ede4;
}
.mgk-calendar-table {
    width: 100%;
    border-collapse: collapse;
}
.mgk-calendar-table th,
.mgk-calendar-table td {
    padding: 20px 0;
    text-align: center;
    border: 1px solid #ddd;
}
#mgk-kalendarz .mgk-available {
    background-color: #d4f4d7;
    color: #00641f;
}
#mgk-kalendarz .mgk-booked {
    background-color: #e8e8e8 !important;
    color: #c2c2c2 !important;
}
.mgk-empty {
    background-color: #f0f0f0;
}
.mgk-legend {
    margin-top: 35px;
    display: flex;
    justify-content: normal;
    gap: 20px;
    font-size: 14px;
}
.mgk-legend-item {
    display: flex;
    align-items: center;
}
.mgk-legend-square {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 5px;
}

/* ---------------------------
   ADMIN: kolumny w tabeli CPT + notice box
--------------------------- */
.post-type-mgk_rezerwacje .wp-list-table .column-mgk_termin {
    width: 25%;
    white-space: nowrap;
}
.post-type-mgk_rezerwacje .wp-list-table .column-title {
    width: 45%;
    white-space: normal;
}
.post-type-mgk_rezerwacje .wp-list-table .column-date {
    width: 20%;
    white-space: nowrap;
}

.mgk-conflict-notice { margin-bottom: 12px; }
