/* ============================================================
   AURORA CALENDAR PREMIUM STYLES
   Plik: modules/css/style.calendar.css
   ============================================================ */

/* --- UTILS --- */
.border-white-10 {
	border-color: rgba(255, 255, 255, 0.08) !important;
}

.border-white-05 {
	border-color: rgba(255, 255, 255, 0.04) !important;
}

.bg-glass-dark {
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.fw-800 {
	font-weight: 800;
}

.ls-1 {
	letter-spacing: 1px;
}

/* Tło siatki */
.bg-dark-gradient {
	background: radial-gradient(circle at top right, rgba(15, 23, 42, 0.4) 0%, rgba(2, 6, 23, 0.8) 100%);
}

/* --- TOOLBAR STYLES --- */
.calendar-header-panel {
	background: rgba(15, 23, 42, 0.4);
	backdrop-filter: blur(20px);
}

/* Przyciski Główne */
.btn-aurora-primary {
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	border: none;
	color: white;
	font-weight: 600;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-aurora-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
	color: white;
}

/* Przyciski Glass (Filtry) */
.btn-aurora-glass {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #94a3b8;
	font-weight: 500;
	border-radius: 10px;
	padding: 8px 16px;
	transition: 0.2s;
}

.btn-aurora-glass:hover,
.btn-aurora-glass.show {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.2);
	color: #fff;
}

/* Nawigacja (Prev/Next) */
.btn-glass-icon {
	color: #94a3b8;
	border: none;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	transition: 0.2s;
}

.btn-glass-icon:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.btn-glass-text {
	color: #cbd5e1;
	border: none;
	background: transparent;
	transition: 0.2s;
}

.btn-glass-text:hover {
	color: #fff;
}

/* Switcher Widoków */
.btn-switcher {
	border: none;
	color: #64748b;
	font-weight: 600;
	font-size: 0.85rem;
	padding: 6px 16px;
	border-radius: 8px;
	background: transparent;
	transition: 0.2s;
}

.btn-switcher:hover {
	color: #cbd5e1;
	background: rgba(255, 255, 255, 0.05);
}

.btn-switcher.active {
	background: rgba(59, 130, 246, 0.15);
	color: #60a5fa;
	box-shadow: inset 0 0 10px rgba(59, 130, 246, 0.1);
}

/* Legend Dots */
.badge-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
}

.badge-dot.bg-info {
	background-color: #0ea5e9;
	box-shadow: 0 0 8px #0ea5e9;
}

.badge-dot.bg-warning {
	background-color: #f59e0b;
	box-shadow: 0 0 8px #f59e0b;
}

.badge-dot.bg-purple {
	background-color: #a855f7;
	box-shadow: 0 0 8px #a855f7;
}

.badge-dot.bg-success {
	background-color: #10b981;
	box-shadow: 0 0 8px #10b981;
}


/* ============================================================
   FULLCALENDAR AURORA OVERRIDES (The Magic Part)
   ============================================================ */

.fc-aurora {
	font-family: 'Plus Jakarta Sans', sans-serif;
	--fc-border-color: rgba(255, 255, 255, 0.06);
	--fc-page-bg-color: transparent;
	--fc-neutral-bg-color: rgba(255, 255, 255, 0.02);
	--fc-today-bg-color: rgba(59, 130, 246, 0.05);
	--fc-now-indicator-color: #f43f5e;
}

/* --- NAGŁÓWEK TABELI (Dni tygodnia) --- */
.fc-theme-standard .fc-scrollgrid {
	border: none !important;
	/* Usuwamy główną ramkę */
}

.fc-col-header-cell {
	background: rgba(15, 23, 42, 0.8) !important;
	border: none !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
	padding: 15px 0 !important;
}

.fc-col-header-cell-cushion {
	color: #64748b;
	text-transform: uppercase;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-decoration: none !important;
}

/* --- SIATKA (Grid) --- */
.fc-theme-standard td,
.fc-theme-standard th {
	border-color: rgba(255, 255, 255, 0.04) !important;
}

/* Komórka dnia */
.fc-daygrid-day {
	transition: background 0.2s;
}

.fc-daygrid-day:hover {
	background: rgba(255, 255, 255, 0.015);
}

/* Numer dnia */
.fc-daygrid-day-number {
	color: #94a3b8;
	font-size: 0.9rem;
	font-weight: 500;
	padding: 8px 10px !important;
	text-decoration: none !important;
}

/* Dziś (Highlight) */
.fc-day-today {
	background: rgba(59, 130, 246, 0.03) !important;
}

.fc-day-today .fc-daygrid-day-number {
	background: #3b82f6;
	color: #fff;
	border-radius: 50%;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 4px;
}

/* --- WYDARZENIA (Events) --- */
.ecp-cal-event {
	border: none !important;
	border-left: 3px solid transparent !important;
	border-radius: 4px !important;
	/* Bardziej proste, techniczne */
	padding: 3px 6px !important;
	font-size: 0.75rem !important;
	margin-bottom: 2px !important;
	backdrop-filter: blur(5px);
	transition: transform 0.2s, box-shadow 0.2s;
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.ecp-cal-event:hover {
	transform: translateY(-1px) scale(1.01);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
	z-index: 5;
}

/* Tytuł i czas */
.fc-event-title {
	font-weight: 600 !important;
	color: rgba(255, 255, 255, 0.95);
}

.fc-event-time {
	font-weight: 400 !important;
	opacity: 0.7;
	margin-right: 4px;
}

/* --- KOLORYSTYKA WYDARZEŃ (Gradienty) --- */

/* 1. Projekty (Blue/Cyan) */
.ecp-src-projects {
	background: linear-gradient(90deg, rgba(14, 165, 233, 0.2) 0%, rgba(6, 182, 212, 0.1) 100%) !important;
	border-left-color: #0ea5e9 !important;
}

.ecp-src-projects:hover {
	border-left-color: #38bdf8 !important;
}

/* 2. Kanban (Amber/Orange) */
.ecp-src-kanban {
	background: linear-gradient(90deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.1) 100%) !important;
	border-left-color: #f59e0b !important;
}

/* 3. Spotkania / Lokalne (Emerald/Green) */
.ecp-src-app,
.ecp-type-meeting {
	background: linear-gradient(90deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.1) 100%) !important;
	border-left-color: #10b981 !important;
}

/* 4. Logi Czasu / Historia (Purple) */
.ecp-src-logs {
	background: linear-gradient(90deg, rgba(168, 85, 247, 0.15) 0%, rgba(147, 51, 234, 0.05) 100%) !important;
	border-left-color: #a855f7 !important;
	opacity: 0.8;
}

/* 5. Zewnętrzne (Indigo) */
.ecp-src-external {
	background: linear-gradient(90deg, rgba(99, 102, 241, 0.2) 0%, rgba(79, 70, 229, 0.1) 100%) !important;
	border-left-color: #6366f1 !important;
}

/* --- WIDOK TYGODNIA (TimeGrid) --- */
.fc-timegrid-slot {
	height: 3em !important;
	/* Wyższe sloty */
	border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
}

.fc-timegrid-slot-label-cushion {
	color: #64748b;
	font-size: 0.75rem;
}

.fc-timegrid-now-indicator-line {
	border-color: #f43f5e !important;
	/* Różowa linia teraz */
	box-shadow: 0 0 5px #f43f5e;
}

.fc-timegrid-now-indicator-arrow {
	border-color: #f43f5e !important;
}

/* --- POPUP (More events) --- */
.fc-popover {
	background: #1e293b !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
	border-radius: 12px;
}

.fc-popover-header {
	background: rgba(255, 255, 255, 0.05) !important;
	color: #fff;
	font-weight: 700;
}

.fc-popover-body {
	padding: 10px !important;
}

/* Responsywność */
@media (max-width: 768px) {
	.calendar-header-panel {
		padding: 15px;
	}

	#cal-current-title {
		order: -1;
		width: 100%;
		text-align: center;
		margin-bottom: 10px;
		font-size: 1.4rem !important;
	}

	.view-switcher {
		width: 100%;
	}

	.view-switcher .btn {
		flex: 1;
	}

	.fc-toolbar-title {
		font-size: 1.2rem;
	}
}




/* --- CALENDAR TOOLBAR INNER STYLES --- */

/* 1. Tytuł Kalendarza (Responsywny) */
.cal-title-responsive {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 1.5rem;
	/* Domyślny rozmiar */
	letter-spacing: -0.5px;
	background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 2. Przycisk Główny (Aurora Primary) */
.btn-aurora-primary {
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: white;
	box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
	transition: all 0.2s ease;
}

.btn-aurora-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.3);
}

.btn-aurora-primary:active {
	transform: translateY(0);
}

/* 3. Przycisk Glass (Dropdown) */
.btn-aurora-glass {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #cbd5e1;
	font-weight: 500;
	padding: 8px 16px;
	border-radius: 10px;
	transition: all 0.2s ease;
}

.btn-aurora-glass:hover,
.btn-aurora-glass.show {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.25);
	color: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 4. Grupa Nawigacji (Prev/Next) */
.bg-glass-dark {
	background: rgba(0, 0, 0, 0.3);
}

.border-white-05 {
	border-color: rgba(255, 255, 255, 0.05) !important;
}

.btn-glass-icon {
	color: #94a3b8;
	border: none;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	transition: 0.2s;
}

.btn-glass-icon:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.btn-glass-text {
	color: #cbd5e1;
	border: none;
	background: transparent;
	transition: 0.2s;
}

.btn-glass-text:hover {
	color: #fff;
	text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* 5. Switcher Widoków (Tabs) */
.view-switcher {
	gap: 2px;
}

.btn-switcher {
	border: none;
	color: #64748b;
	font-weight: 600;
	font-size: 0.85rem;
	padding: 6px 14px;
	border-radius: 6px;
	background: transparent;
	transition: all 0.2s ease;
}

.btn-switcher:hover {
	color: #cbd5e1;
	background: rgba(255, 255, 255, 0.05);
}

.btn-switcher.active {
	background: rgba(59, 130, 246, 0.15);
	/* Niebieskie tło aktywne */
	color: #60a5fa;
	/* Niebieski tekst */
	box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}

/* 6. Dropdown Menu (Stylizacja listy) */
.aurora-dropdown-menu {
	background: #0f172a;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
	border-radius: 12px;
	margin-top: 8px !important;
}

.dropdown-item {
	color: #cbd5e1;
	padding: 8px 12px;
	font-size: 0.9rem;
	transition: 0.2s;
}

.dropdown-item:hover {
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
}

/* Badge Dot (Kropki statusu) */
.badge-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
	box-shadow: 0 0 8px currentColor;
}

.badge-dot.bg-info {
	background-color: #0ea5e9;
	color: #0ea5e9;
}

.badge-dot.bg-warning {
	background-color: #f59e0b;
	color: #f59e0b;
}

.badge-dot.bg-purple {
	background-color: #a855f7;
	color: #a855f7;
}

/* Responsywność */
@media (max-width: 576px) {
	.cal-title-responsive {
		font-size: 1.2rem;
		width: 100%;
		text-align: center;
		margin-top: 10px !important;
		margin-left: 0 !important;
	}

	.calendar-toolbar-inner {
		justify-content: center !important;
	}
}


/* Fix dla dropdowna w pasku narzędzi */
.calendar-header-panel {
	overflow: visible !important;
	/* Pozwala dropdownowi wystawać poza pasek */
	z-index: 100;
	/* Wyższy niż kalendarz */
	position: relative;
}

/* Upewnij się, że główna karta nie ucina */
#view-calendar-container .glass-card {
	overflow: visible !important;
}

/* Ale przywróć overflow dla samej siatki kalendarza, żeby scroll działał */
.fc-aurora {
	overflow: auto;
}

/* Custom Checkbox Styling */
.form-check.ms-1 {
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.05);
	padding: 8px 12px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: all 0.2s ease;
	cursor: pointer;
}

.form-check.ms-1:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.2);
}

/* Ukrycie domyślnego checkboxa i zrobienie własnego */
.form-check.ms-1 .form-check-input {
	width: 1.3em;
	height: 1.3em;
	margin-top: 0;
	margin-right: 10px;
	background-color: #1f2937;
	border: 2px solid #4b5563;
	cursor: pointer;
	box-shadow: none !important;
	/* usuwa niebieską poświatę boostrap */
}

.form-check.ms-1 .form-check-input:checked {
	background-color: #3b82f6;
	/* Kolor aktywny (niebieski) */
	border-color: #3b82f6;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.form-check.ms-1 .form-check-label {
	cursor: pointer;
	font-weight: 500;
	color: #d1d5db !important;
	/* Jasny szary tekst */
	user-select: none;
}