calendar-new.css
18.38 KB
/* Modern Calendar Styling */
/* Hide all scrollbars but keep functionality */
.fc-scroller,
.fc .fc-scroller,
.fc-timegrid-body,
.fc-daygrid-body,
.calendar-container {
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE/Edge */
}
.fc-scroller::-webkit-scrollbar,
.fc .fc-scroller::-webkit-scrollbar,
.fc-timegrid-body::-webkit-scrollbar,
.fc-daygrid-body::-webkit-scrollbar,
.calendar-container::-webkit-scrollbar {
display: none; /* Chrome/Safari/Edge */
}
/* Calendar Container */
.calendar-container {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 12px;
padding: 20px;
margin-bottom: 20px;
}
/* FullCalendar Overrides */
.fc {
--fc-border-color: var(--border);
--fc-button-bg-color: rgba(255, 255, 255, 0.02);
--fc-button-border-color: var(--border);
--fc-button-hover-bg-color: rgba(255, 255, 255, 0.04);
--fc-button-hover-border-color: var(--accent);
--fc-button-active-bg-color: var(--accent-soft);
--fc-button-active-border-color: var(--accent);
--fc-button-text-color: var(--text-main);
--fc-today-bg-color: rgba(255, 140, 26, 0.1);
}
.fc .fc-toolbar-title {
font-size: 1.5rem;
font-weight: 700;
color: var(--text-main);
}
/* Toolbar Layout - Better Alignment */
.fc .fc-toolbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 0;
gap: 12px;
}
.fc .fc-toolbar-chunk {
display: flex;
align-items: center;
gap: 8px;
}
.fc .fc-toolbar-chunk:first-child {
flex-shrink: 0;
}
.fc .fc-toolbar-chunk:nth-child(2) {
flex: 1;
justify-content: center;
}
.fc .fc-toolbar-chunk:last-child {
flex-shrink: 0;
}
/* FullCalendar Buttons - Match app button style */
.fc .fc-button {
padding: 8px 14px !important;
font-weight: 600 !important;
border-radius: 8px !important;
text-transform: capitalize;
border: 2px solid var(--border) !important;
background: rgba(255, 255, 255, 0.02) !important;
color: var(--text-main) !important;
transition: all 0.2s ease !important;
box-shadow: none !important;
}
.fc .fc-button:hover {
transform: translateY(-2px) !important;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
border-color: var(--accent) !important;
}
.fc .fc-button-active {
background: var(--accent-soft) !important;
border-color: var(--accent) !important;
color: var(--accent) !important;
}
.fc .fc-button-active:hover {
background: var(--accent) !important;
color: #fff !important;
}
.fc .fc-button:disabled {
opacity: 0.4 !important;
cursor: not-allowed !important;
transform: none !important;
box-shadow: none !important;
}
/* Calendar Grid */
.fc .fc-daygrid-day {
background: var(--bg-card);
}
.fc .fc-daygrid-day-number {
color: var(--text-main);
padding: 8px;
font-weight: 600;
}
.fc .fc-col-header-cell {
background: var(--bg-panel);
padding: 10px;
font-weight: 700;
color: var(--text-main);
text-transform: uppercase;
font-size: 0.85rem;
}
.fc .fc-day-today {
background: var(--fc-today-bg-color) !important;
}
/* Events */
.fc .fc-event {
padding: 4px 6px;
border-radius: 4px;
border: none;
margin: 2px 0;
cursor: pointer;
}
.fc .fc-event:hover {
opacity: 0.9;
}
.fc .fc-event-title {
font-weight: 600;
font-size: 0.85rem;
}
/* List View */
.fc .fc-list-event:hover td {
background: var(--bg-hover);
}
.fc .fc-list-event-time {
color: var(--text-muted);
}
.fc .fc-list-event-title a {
color: var(--text-main);
font-weight: 600;
}
/* Category Filter */
.calendar-filter {
display: flex;
flex-wrap: wrap;
gap: 10px;
padding: 16px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 12px;
}
.filter-pill {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 14px;
border: 2px solid transparent;
border-radius: 8px;
background: var(--bg-panel);
cursor: pointer;
transition: all 0.2s;
font-weight: 600;
font-size: 0.9rem;
color: var(--text-main);
}
.filter-pill:hover {
border-color: var(--accent);
transform: translateY(-2px);
}
.filter-pill.active {
background: var(--accent-soft);
border-color: var(--accent);
}
.pill-dot {
width: 10px;
height: 10px;
border-radius: 50%;
}
/* Modal */
.modal-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.7);
z-index: 1000;
align-items: center;
justify-content: center;
padding: 20px;
}
.modal-overlay.active {
display: flex;
}
.modal-overlay > .modal {
background: var(--bg-card);
border-radius: 12px;
max-width: 600px;
width: 100%;
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.modal-overlay > .modal > .modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px;
border-bottom: 1px solid var(--border);
}
.modal-overlay > .modal > .modal-header h3 {
margin: 0;
font-size: 1.25rem;
color: var(--text-main);
}
.modal-overlay .modal-close {
background: none;
border: none;
font-size: 1.5rem;
color: var(--text-muted);
cursor: pointer;
padding: 0;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: all 0.2s;
}
.modal-overlay .modal-close:hover {
background: var(--bg-hover);
color: var(--text-main);
}
.modal-overlay > .modal > .modal-body {
padding: 20px;
}
.modal-overlay > .modal > .modal-footer {
display: flex;
gap: 10px;
justify-content: flex-end;
padding-top: 20px;
margin-top: 20px;
border-top: 1px solid var(--border);
}
/* Form Styling */
.form-group {
margin-bottom: 16px;
}
.form-group label {
display: block;
margin-bottom: 6px;
font-weight: 600;
color: var(--text-main);
font-size: 0.9rem;
}
.form-input {
width: 100%;
padding: 10px 12px;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--bg-panel);
color: var(--text-main);
font-size: 0.95rem;
transition: all 0.2s;
}
.form-input:focus {
outline: none;
border-color: var(--accent);
background: var(--bg-card);
}
.form-input::placeholder {
color: var(--text-muted);
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
.form-help {
display: block;
margin-top: 4px;
font-size: 0.85rem;
color: var(--text-muted);
}
.checkbox-label {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
user-select: none;
}
.checkbox-label input[type="checkbox"] {
width: 18px;
height: 18px;
cursor: pointer;
}
.checkbox-label span {
font-weight: 600;
color: var(--text-main);
}
/* Event Fields Sections */
.event-fields {
animation: fadeIn 0.3s;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
/* Responsive Design */
@media (max-width: 1200px) {
.calendar-container {
padding: 15px;
}
.fc .fc-toolbar-title {
font-size: 1.25rem;
}
}
@media (max-width: 991.98px) {
/* Mobile layout: we always use Day view only.
Hide the view-switcher button group to prevent Month/Week/Day buttons from showing. */
.fc .fc-toolbar-chunk:last-child {
display: none !important;
}
/* Save vertical space */
.fc .fc-today-button {
display: none !important;
}
}
@media (max-width: 768px) {
.calendar-container {
padding: 10px;
}
.fc .fc-toolbar {
flex-direction: column;
gap: 10px;
}
.fc .fc-toolbar-chunk {
width: 100%;
justify-content: center;
}
.fc .fc-toolbar-title {
font-size: 1.1rem;
text-align: center;
}
.fc .fc-button {
padding: 6px 10px;
font-size: 0.85rem;
}
.calendar-filter {
padding: 12px;
gap: 8px;
}
.filter-pill {
font-size: 0.85rem;
padding: 6px 10px;
}
.modal-overlay > .modal {
margin: 10px;
}
.modal-overlay > .modal > .modal-header {
padding: 15px;
}
.modal-overlay > .modal > .modal-body {
padding: 15px;
}
.form-row {
grid-template-columns: 1fr;
}
}
@media (max-width: 480px) {
.content-header {
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
.calendar-filter {
flex-direction: column;
}
.filter-pill {
width: 100%;
justify-content: center;
}
.modal-overlay > .modal > .modal-footer {
flex-direction: column;
}
.modal-footer .btn {
width: 100%;
}
}
/* Day View Specific Styling */
.fc-timeGridDay-view {
min-height: 550px;
}
.fc .fc-timegrid-slot {
height: 50px;
border-bottom: 1px solid var(--border);
}
.fc .fc-timegrid-slot-label {
color: var(--text-main);
font-weight: 600;
border-right: 1px solid var(--border);
padding: 5px;
}
.fc .fc-timegrid-col {
border-left: 1px solid var(--border);
}
.fc .fc-timegrid-now-indicator-line {
border-color: var(--accent);
border-width: 2px;
}
.fc .fc-timegrid-axis {
background: var(--bg-panel);
min-width: 60px;
}
.fc .fc-timegrid-divider {
background: var(--bg-panel);
border-color: var(--border);
}
/* All-day section in day view */
.fc .fc-timegrid .fc-daygrid-body {
min-height: 50px;
background: var(--bg-panel);
}
/* Mobile adjustments for day view */
@media (max-width: 768px) {
.fc-timeGridDay-view {
min-height: 500px;
}
.fc .fc-timegrid-slot {
height: 40px;
}
.fc .fc-timegrid-slot-label {
font-size: 0.8rem;
padding: 3px;
}
.fc .fc-timegrid-axis {
min-width: 50px;
}
}
/* Desktop Month View Styling */
@media (min-width: 768px) {
.calendar-container {
padding: 20px;
}
/* Month view cells */
.fc-dayGridMonth-view .fc-daygrid-day {
min-height: 120px;
}
.fc-dayGridMonth-view .fc-daygrid-day-number {
font-size: 14px;
padding: 8px;
}
/* Week view */
.fc-timeGridWeek-view .fc-timegrid-slot {
height: 48px;
}
/* Day view on desktop */
.fc-timeGridDay-view .fc-timegrid-slot {
height: 60px;
}
/* View buttons visible */
.fc .fc-toolbar-chunk:last-child {
display: flex !important;
}
}
/* Ensure smooth transitions */
.fc {
transition: all 0.3s ease;
}
.fc-daygrid-day,
.fc-timegrid-slot {
transition: height 0.3s ease;
}
/* Responsive View Styles */
/* Desktop Month View */
@media (min-width: 769px) {
.calendar-container {
min-height: 600px;
}
.fc-dayGridMonth-view .fc-daygrid-day {
min-height: 120px;
}
.fc-dayGridMonth-view .fc-daygrid-day-number {
font-size: 14px;
padding: 8px;
}
.fc .fc-toolbar {
padding-bottom: 20px;
}
}
/* Mobile Day View */
@media (max-width: 768px) {
.calendar-container {
min-height: 650px;
}
.fc .fc-toolbar {
padding-bottom: 10px;
}
.fc .fc-toolbar-title {
font-size: 1.1rem;
}
}
/* View-specific button styling */
.fc .fc-button-group {
display: flex;
gap: 4px;
}
.fc .fc-button-group .fc-button {
flex: 1;
min-width: 60px;
}
/* Navigation buttons (prev/next arrows) */
.fc .fc-prev-button,
.fc .fc-next-button {
min-width: 44px !important;
padding: 8px 12px !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
}
/* Mobile Calendar Improvements */
@media (max-width: 768px) {
/* Fullscreen layout */
body:has(#calendar) .main-content {
padding: 0 !important;
overflow-x: hidden !important;
}
body:has(#calendar) .content-header {
padding: 12px 16px !important;
margin-bottom: 0 !important;
background: var(--bg-panel) !important;
border-bottom: 1px solid var(--border) !important;
}
.calendar-container {
background: transparent !important;
border: none !important;
padding: 0 !important;
margin: 0 !important;
}
#calendar {
height: calc(100vh - 160px) !important;
background: var(--bg-main) !important;
width: 100vw !important;
}
.fc {
height: 100% !important;
background: var(--bg-main) !important;
}
/* Mobile Toolbar - Clean Layout */
.fc .fc-toolbar {
flex-direction: column;
padding: 10px 0;
gap: 12px;
}
/* Navigation Row: ← Today → */
.fc .fc-toolbar-chunk:first-child {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
gap: 8px;
}
/* Title Row: February 15, 2026 */
.fc .fc-toolbar-chunk:nth-child(2) {
width: 100%;
justify-content: center;
}
.fc .fc-toolbar-title {
font-size: 1.1rem;
font-weight: 700;
color: var(--text-main);
text-align: center;
width: 100%;
}
/* View buttons on mobile (Month/Week/Day) */
.fc .fc-toolbar-chunk:last-child {
display: flex !important;
justify-content: center;
}
.fc .fc-button-group {
flex-wrap: wrap;
gap: 6px;
justify-content: center;
}
.fc .fc-button-group .fc-button {
flex: 0 0 auto;
min-width: 92px;
}
/* Mobile buttons */
.fc .fc-button {
padding: 10px 14px !important;
font-size: 0.95rem !important;
min-width: 92px;
}
/* Calendar backgrounds */
.fc .fc-view-harness,
.fc .fc-scrollgrid,
.fc .fc-timegrid-body,
.fc .fc-timegrid-cols {
background: var(--bg-main) !important;
}
.fc .fc-timegrid-col {
background: var(--bg-main) !important;
border-left: 1px solid rgba(255, 255, 255, 0.05) !important;
}
/* Time axis styling (if FullCalendar renders it) */
.fc-timegrid-axis {
min-width: 50px !important;
width: 50px !important;
background: var(--bg-main) !important;
border-right: 1px solid var(--border) !important;
}
.fc-timegrid-slot-label {
font-size: 0.7rem !important;
color: var(--text-main) !important;
font-weight: 600 !important;
padding: 4px !important;
}
/* Time slots */
.fc .fc-timegrid-slot {
height: 60px !important;
background: var(--bg-main) !important;
border-color: rgba(255, 255, 255, 0.05) !important;
}
/* All-day section */
.fc .fc-timegrid .fc-daygrid-body {
background: var(--bg-panel) !important;
border-bottom: 2px solid var(--border) !important;
min-height: 50px !important;
}
/* Event styling */
.fc .fc-timegrid-event {
border-radius: 4px !important;
border: none !important;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}
/* Better navigation buttons */
.fc .fc-button {
padding: 8px 12px;
font-size: 0.9rem;
border-radius: 6px;
}
.fc .fc-button-group {
gap: 4px;
}
/* Cleaner day header */
.fc .fc-col-header-cell {
padding: 12px 8px;
background: var(--bg-panel);
border-bottom: 2px solid var(--accent);
}
.fc .fc-col-header-cell-cushion {
font-weight: 700;
color: var(--accent);
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Better event display */
.fc .fc-daygrid-event {
padding: 6px 8px;
margin: 4px 2px;
border-radius: 6px;
font-weight: 600;
font-size: 0.85rem;
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.fc .fc-event-main {
padding: 0;
}
/* Cleaner time slots */
.fc .fc-timegrid-slot {
height: 60px;
border-color: rgba(255, 255, 255, 0.05);
}
.fc .fc-timegrid-slot-label {
padding: 8px 4px;
font-size: 0.75rem;
font-weight: 600;
color: var(--text-muted);
}
/* Better scrolling */
.fc .fc-scroller {
-webkit-overflow-scrolling: touch;
}
/* Hide empty time slots at bottom */
.fc .fc-timegrid-slots {
max-height: none;
}
}
@media (max-width: 480px) {
/* Even more compact for small phones */
.fc .fc-toolbar-title {
font-size: 1rem;
}
.fc .fc-button {
padding: 6px 10px;
font-size: 0.85rem;
}
.fc .fc-daygrid-event {
font-size: 0.8rem;
padding: 4px 6px;
}
.fc .fc-timegrid-slot {
height: 50px;
}
}
/* Today button - match app secondary button style */
.fc .fc-today-button {
background: rgba(255, 255, 255, 0.02) !important;
border: 2px solid var(--border) !important;
border-radius: 8px !important;
color: var(--text-main) !important;
font-weight: 600 !important;
padding: 8px 14px !important;
transition: all 0.2s ease !important;
}
.fc .fc-today-button:hover {
transform: translateY(-2px) !important;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
border-color: var(--accent) !important;
}
.fc .fc-today-button:disabled {
opacity: 0.4 !important;
cursor: not-allowed !important;
transform: none !important;
}
/* Better event titles on mobile */
@media (max-width: 768px) {
.fc-event-title {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: block;
line-height: 1.3;
}
/* Make events more touch-friendly */
.fc-event {
cursor: pointer;
transition: transform 0.1s, box-shadow 0.1s;
}
.fc-event:active {
transform: scale(0.98);
box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
/* Improve readability */
.fc-daygrid-event-harness {
margin: 2px 0;
}
/* Better spacing for all-day events */
.fc-timegrid-event-harness {
margin: 0 2px;
}
}
/* Loading state */
.fc-event-loading {
opacity: 0.6;
pointer-events: none;
}
/* Current time indicator on mobile */
@media (max-width: 768px) {
.fc .fc-timegrid-now-indicator-line {
border-color: var(--accent);
border-width: 2px;
z-index: 4;
}
.fc .fc-timegrid-now-indicator-arrow {
border-color: var(--accent);
}
}
/* Mobile content header improvements */
@media (max-width: 768px) {
.content-header {
padding: 12px 16px;
gap: 10px;
}
.content-title {
font-size: 1.25rem;
}
.content-subtitle {
font-size: 0.85rem;
}
/* Better Add Event button on mobile */
.content-header .btn {
padding: 10px 16px;
font-size: 0.9rem;
white-space: nowrap;
}
}
/* Filter pills improvements for mobile */
@media (max-width: 768px) {
.calendar-filter {
padding: 10px;
gap: 6px;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE/Edge */
}
.calendar-filter::-webkit-scrollbar {
display: none; /* Chrome/Safari */
}
.filter-pill {
flex-shrink: 0;
padding: 6px 12px;
font-size: 0.85rem;
}
.pill-dot {
width: 8px;
height: 8px;
}
}
/* Improve spacing between calendar and filters on mobile */
@media (max-width: 768px) {
.calendar-container {
margin-bottom: 10px;
}
.calendar-filter {
margin-bottom: 10px;
}
}.fc-scroller::-webkit-scrollbar {
width: 6px;
}
.fc-scroller::-webkit-scrollbar-track {
background: transparent;
}
.fc-scroller::-webkit-scrollbar-thumb {
background: var(--accent);
border-radius: 3px;
}