/* Custom styles for Mankuski Park Calendar Web App */
body {
    background-color: #f8f9fa;
    font-size: 16px;
}

.card {
    margin-top: 20px;
    margin-bottom: 20px;
}

.navbar-brand {
    font-weight: bold;
}

.navbar-nav .nav-link {
    padding: 10px 15px;
}

.table th, .table td {
    vertical-align: middle;
}

.alert {
    margin-top: 10px;
}

/* Calendar day cell positioning for + links */
.fc .fc-daygrid-day {
    position: relative;
}

.fc .fc-daygrid-day-frame {
    position: relative;
}

/* Ensure calendar date text is visible */
.fc .fc-daygrid-day-number {
    position: relative;
    z-index: 1;
    font-weight: bold;
    color: #333;
    margin-right: 25px; /* Leave space for the + link */
    display: inline-block;
}

/* Calendar add request link styles */
.add-request-link {
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    opacity: 0.8;
}

.add-request-link:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

/* Mobile-specific styles for add request links */
@media (max-width: 576px) {
    .add-request-link {
        width: 16px !important;
        height: 16px !important;
        font-size: 10px !important;
        top: 2px !important;
        right: 2px !important;
    }
    
    .fc .fc-daygrid-day-number {
        margin-right: 20px; /* Slightly less margin on mobile */
    }
}

/* Mobile-friendly table styles */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    font-size: 14px;
}

.table th, .table td {
    padding: 8px;
    white-space: nowrap;
}

/* Admin dashboard button styles */
.admin-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.admin-actions .btn {
    margin: 0;
    white-space: nowrap;
}

/* Calendar event styles */
.fc-event {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.fc-event:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Calendar event title styling */
.fc-event-title {
    font-weight: 500;
    line-height: 1.2;
}

/* Ensure buttons and links are touch-friendly */
.btn {
    min-width: 100px;
    padding: 8px 12px;
    font-size: 14px;
}

a.btn {
    display: inline-block;
}

/* Form adjustments for mobile */
.form-control {
    font-size: 14px;
    padding: 8px;
}

.form-label {
    font-size: 14px;
    margin-bottom: 5px;
}

.mb-3 {
    margin-bottom: 15px !important;
}

/* Calendar adjustments for mobile */
#calendar {
    font-size: 12px;
}

.fc .fc-toolbar {
    flex-wrap: wrap;
    padding: 10px;
}

.fc .fc-toolbar-title {
    font-size: 16px;
    margin: 5px 0;
}

.fc .fc-button {
    font-size: 12px;
    padding: 5px 10px;
}

.fc .fc-daygrid-day {
    padding: 5px;
}

.fc .fc-event {
    font-size: 10px;
    padding: 2px;
    line-height: 1.2;
}

/* Flatpickr adjustments */
.flatpickr-input {
    width: 100%;
}

.flatpickr-time input {
    font-size: 14px;
}

/* Mobile-specific media queries */
@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .card {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 8px 10px;
    }

    .table th, .table td {
        font-size: 12px;
        padding: 6px;
    }

    .btn {
        min-width: 80px;
        font-size: 12px;
    }

    .form-control {
        font-size: 12px;
    }

    .form-label {
        font-size: 12px;
    }

    #calendar {
        font-size: 10px;
    }

    .fc .fc-toolbar-title {
        font-size: 14px;
    }

    .fc .fc-button {
        font-size: 10px;
        padding: 4px 8px;
    }

    .fc .fc-event {
        font-size: 8px;
    }
}