/* public/assets/css/custom.css */

/* ------------------------- */
/* Content Type Distinctions */
/* ------------------------- */

/* Using border-left for visual distinction on cards */
.card-news {
    border-left: 5px solid #3b82f6; /* Tailwind blue-500 */
}

.card-event {
    border-left: 5px solid #8b5cf6; /* Tailwind purple-500 */
}

.card-action {
    border-left: 5px solid #f97316; /* Tailwind orange-500 */
}

/* Optional: Add icons using ::before pseudo-element if desired */
/* Example for news icon (requires icon font or SVG) */
/*
.card-news::before {
    content: '\f1ea'; // Example FontAwesome newspaper icon
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    display: inline-block;
    margin-right: 0.5em;
    color: #3b82f6;
}
*/

/* ------------------- */
/* Calendar Styling    */
/* ------------------- */

.calendar {
    /* Base styles are handled by Tailwind in home.php */
    /* Add any overrides or additional styles here */
}

.calendar .calendar-day {
    /* Base styles handled by Tailwind */
    min-height: 6rem; /* Ensure days have enough height */
    transition: background-color 0.2s ease-in-out;
}

.calendar .calendar-day:hover {
    background-color: rgba(52, 211, 153, 0.1); /* Light green hover, adjust as needed */
}

.calendar .calendar-day-today {
    /* Style for the current day */
    background-color: rgba(16, 185, 129, 0.3); /* Tailwind green-600 with opacity */
    border: 1px solid #059669; /* Tailwind green-700 */
}

.calendar .calendar-day-has-event {
    /* Style for days with events */
    background-color: rgba(22, 101, 52, 0.4); /* Darker green background */
    cursor: pointer; /* Indicate clickability if linking */
}

.calendar .calendar-event-indicator {
    /* Style for the event text within a day cell */
    display: block; /* Ensure it takes its own line */
    margin-top: 0.25rem;
    font-size: 0.75rem; /* text-xs */
    color: #6ee7b7; /* Tailwind green-300 */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ------------------- */
/* Responsive Layouts  */
/* ------------------- */

/* Tailwind handles most responsiveness with its utility classes (md:, lg:, etc.) */
/* Add specific overrides or adjustments if Tailwind isn't sufficient */

/* Mobilní optimalizace */
@media (max-width: 640px) { /* Below sm breakpoint */
    /* Zmenšení nadpisů na mobilních zařízeních */
    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    /* Zmenšení mezer mezi sekcemi */
    .mb-12 {
        margin-bottom: 2rem !important;
    }

    /* Zmenšení paddingu v kontejneru */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Kalendář - menší velikost */
    .calendar .calendar-day {
        min-height: 4rem;
        padding: 0.25rem; /* Smaller padding */
    }
    .calendar .calendar-event-indicator {
        font-size: 0.65rem; /* Even smaller text */
    }
}

/* Horizontální scrollování pro tabulky na mobilních zařízeních */
@media (max-width: 640px) {
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Add styles for other views (admin forms, info list/show) if needed */
/* Example: Consistent form styling */
/*
form label {
    // Common label styles
}
form input, form select, form textarea {
    // Common input styles (Tailwind often handles this well)
}
*/

/* ------------------- */
/* Garden Plots Section */
/* ------------------- */

/* Zde budou v budoucnu přidány styly pro sekci zahrádek, až budou implementovány další detaily */

/* ------------------- */
/* Admin Dropdown Menu */
/* ------------------- */

/* Styly pro dropdown menu v admin části */
.dropdown-menu {
    position: relative;
}

.dropdown-content {
    z-index: 50;
    transition: all 0.15s ease-in-out;
}

.dropdown-toggle {
    cursor: pointer;
}