@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700&display=swap');

/* ======================================================
   Reset / Base
====================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Nunito', system-ui, -apple-system, sans-serif;
    background-color: #ffffff;
    color: #2E2E2E;
    line-height: 1.5;
}
.copyright {
  font-size: 10px;
  color: #827f7f;
  width: 100%;
  text-align: right;
}
/* ======================================================
   Layout
====================================================== */
.page-center {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.container {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

/* ======================================================
   Headings
====================================================== */
h1 {
    font-size: 1.6rem;
    
    font-weight: 600;
}

h2 {
    font-size: 1.2rem;
    
    font-weight: 600;
}

/* ======================================================
   Buttons
====================================================== */
.btn {
    display: block;
    width: 100%;
    padding: 1rem;
    

    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;

    border-radius: 8px;
    border: 1px solid #C9A24D;
    background-color: #C9A24D;
    color: #ffffff;

    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:hover {
    background-color: #B08B3C;
}

.btn:active {
    transform: scale(0.98);
}

/* Secondary button */
.btn-secondary {
    background-color: #ffffff;
    color: #C9A24D;
}

.btn-secondary:hover {
    background-color: #F9F6EF;
}

/* Small admin button */
.btn-admin {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    background-color: transparent;
    border-color: #E5E5E5;
    color: #666666;
}

.btn-admin:hover {
    background-color: #F5F5F5;
}

/* ======================================================
   Forms
====================================================== */
input,
select,
textarea {
    width: 100%;
    padding: 0.7rem;

    border: 1px solid #E5E5E5;
    border-radius: 6px;
    font-size: 0.95rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #C9A24D;
}
input[type="checkbox"] {
    width:unset;
}

/* ======================================================
   Modal (за showDialog / showFormDialog)
====================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-box {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    width: 100%;
    max-width: 420px;
    overflow: scroll;
    max-height: 90vh;
}

.modal-title {
    
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-message {
    margin-bottom: 1.5rem;
    color: #666666;
}

.modal-buttons {
    display: flex;
    gap: 0.5rem;
}

.modal-btn {
    flex: 1;
    padding: 0.7rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.modal-ok {
    background-color: #C9A24D;
    color: #ffffff;
}

.modal-cancel {
    background-color: #E5E5E5;
    color: #2E2E2E;
}

/* ======================================================
   Utility
====================================================== */
.hidden {
    display: none;
}

/* ==== HOME GRID 3x2 ==== */

.home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 24px;

    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    align-items: center;
}

/* Бутони */
.grid-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border: 2px solid #b89b5e;
    border-radius: 14px;
    background: #fff;
    color: #333;
    text-decoration: none;

    padding: 12px;
    transition: all 0.25s ease;
}

.grid-btn .icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.grid-btn:hover {
    background: #b89b5e;
    color: #fff;
    transform: translateY(-4px);
}

/* Лого */
.grid-logo {
    text-align: center;
}

.grid-logo img {
    max-width: 150px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
}

/* Заглавие */
.grid-title {
    text-align: center;
}

.grid-title h1 {
    margin: 0;
    font-size: 1.6rem;
}

.grid-title h2 {
    margin: 6px 0 0;
    font-weight: normal;
    color: #bd933a;
}
.spinner {
    text-align: center;
    font-size: 1.2rem;
    padding: 2rem;
    color: #333;
    animation: blink 1s infinite;
}
.hour-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.hour-btn {
    padding: 5px 8px;
    background-color: #f7e4c3;
    border: 1px solid #e3d5b5;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    
}

.schedule-slot:hover {
    border:1px solid saddlebrown;
}


.slot-free { background-color: #68ff3a; }
.slot-completed { background-color: #f9d58c; }
.slot-booked { background-color: #ff4343; color: #fff; }

/* ===== Appointments list ===== */

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.appointment-item {
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #fac94e;
}

.appointment-item strong {
    font-size: 1.05em;
    display: block;
    margin-bottom: 4px;
}

.appointment-meta {
    color: #444;
    font-size: 0.95em;
    margin-bottom: 6px;
}

.appointment-tags span {
    display: inline-block;
    background: #eef2f6;
    color: #333;
    font-size: 0.85em;
    padding: 3px 8px;
    border-radius: 12px;
    margin-right: 6px;
}

.appointment-phone,
.appointment-note {
    margin-top: 6px;
    font-size: 0.9em;
    color: #333;
}

.appointment-note {
    font-style: italic;
    color: #555;
}

/* разделител между бъдещи и минали */
hr {
    border: none;
    border-top: 2px dashed #ddd;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Responsive */
@media (max-width: 768px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
}

