/* ===========================
   Global Styles
   =========================== */
body {
    font-family: Arial, sans-serif;
    background: #f4f4f9;
    margin: 0;
    padding: 0;
    color: #333;
     /*padding-top: 100px; /* offset untuk navbar fixed */
}

h1, h2 {
    text-align: center;
    font-weight: 600;
    color: #333; /* unified color */
}

.container, .form-container {
    width: 100%;
    max-width: 1000px;
    margin: 30px auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px; /* unified with calendar */
    box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
}

/* ===========================
   Navigation Bar
   =========================== */
.nav {
    background: #333;
    padding: 15px;
    text-align: center;
}
.nav a {
    margin: 0 10px;
    text-decoration: none;
    padding: 8px 15px;
    background: #28a745;
    color: white;
    border-radius: 5px;
    font-weight: bold;
}
.nav a:hover {
    background: #218838;
}

/* ===========================
   Form Styles
   =========================== */
label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
    color: #555;
}
input, select, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
input[type="submit"], button {
    background: #28a745;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
input[type="submit"]:hover, button:hover {
    background: #218838;
}

/* ===========================
   Booking Table Styles
   (scoped so it won’t affect FullCalendar)
   =========================== */
.booking-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-top: 20px;
}
.booking-table th, 
.booking-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}
.booking-table th {
    background: #28a745;
    color: white;
}
.booking-table tr:nth-child(even) {
    background: #f9f9f9;
}
.booking-table tr:hover {
    background: #f1f1f1;
}

/* ===========================
   Action Buttons
   =========================== */
a.button {
    display: inline-block;
    padding: 6px 12px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}
a.button:hover {
    background: #0056b3;
}
.action-links {
    /*display: flex;*/
    justify-content: center;
    gap: 10px;
}

/* ===========================
   FullCalendar Custom Styles
   =========================== */
#calendar {
    font-family: Arial, sans-serif;
    max-width: 1000px;
    margin: 30px auto;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Calendar header */
.fc .fc-toolbar-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #222;
    text-align: center;
}

/* Background untuk nama hari (Mon, Tue, Wed...) */
.fc .fc-col-header-cell {
    background: #28a745;
    color: #fff;
    font-weight: 600;
    padding: 8px 0;
}
.fc .fc-col-header-cell-cushion {
    color: #fff !important;
    text-decoration: none;
}

/* Buttons in calendar */
.fc .fc-button {
    background: #007bff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s;
    text-transform: capitalize;
}
.fc .fc-button:hover {
    background: #0056b3;
}
.fc .fc-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Day cells */
.fc .fc-daygrid-day-frame {
    padding: 6px;
    transition: background 0.2s;
}
.fc .fc-daygrid-day-frame:hover {
    background: #f1f8ff;
}

/* Today highlight */
.fc .fc-day-today {
    background: #eaf6ff !important;
    border: 2px solid #007bff !important;
}

/* Style only the Today button */
.fc .fc-today-button {
    background: #28a745 !important; /* green */
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 600;
    transition: background 0.3s;
}

/* Hover effect */
.fc .fc-today-button:hover:not(:disabled) {
    background: #218838 !important; /* darker green */
}

/* Disabled state */
.fc .fc-today-button:disabled {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
}

/* Events */
.fc .fc-event {
    background: #28a745;
    border: none;
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}
.fc .fc-event:hover {
    transform: scale(1.05);
    background: #218838;
}

/* Empty date cursor */
.fc-daygrid-day {
    cursor: pointer;
}


/* ===========================
   Mobile Responsive Styles
   =========================== */

/* Make container fit screen with padding */
@media (max-width: 768px) {
    .container, .form-container {
        width: 95%;
        padding: 15px;
    }

    /* Navigation stack */
    .nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .nav a {
        flex: 1 1 auto;
        text-align: center;
        font-size: 14px;
        padding: 10px;
    }

    /* Tables: horizontal scroll */
    .booking-table table {
        display: block;
        width: 100%;
        overflow-x: auto;
        border: none;
    }
    .booking-table th, .booking-table td {
        font-size: 14px;
        padding: 8px;
    }

    /* Dashboard cards in single column */
    .dashboard-cards {
        grid-template-columns: 1fr !important;
    }

    /* Banner: reduce height */
    .banner {
        height: 200px;
        padding: 10px;
    }
    .banner h1 {
        font-size: 1.8rem;
    }

    /* Forms input & buttons */
    input, select, button {
        font-size: 14px;
        padding: 8px;
    }
}

/* Extra small (phones under 480px) */
@media (max-width: 480px) {
    h1, h2 {
        font-size: 1.4rem;
    }
    .nav a {
        font-size: 12px;
        padding: 8px;
    }
    .booking-table th, .booking-table td {
        font-size: 12px;
        padding: 6px;
    }
}




