/* Takvim Uygulaması - Ana Stil Dosyası */

/* ===== Genel Stiller ===== */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ===== Navbar ===== */
.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

.navbar .nav-link {
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    transform: translateY(-2px);
}

/* ===== Hero Section ===== */
.hero-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-image {
    position: relative;
    padding: 3rem;
}

.hero-image .bi-calendar3 {
    font-size: 12rem;
    opacity: 0.9;
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.floating-icon.icon-1 {
    top: 10%;
    right: 20%;
    animation-delay: 0s;
}

.floating-icon.icon-2 {
    top: 30%;
    left: 15%;
    animation-delay: 0.5s;
}

.floating-icon.icon-3 {
    bottom: 20%;
    right: 15%;
    animation-delay: 1s;
}

.floating-icon.icon-4 {
    bottom: 30%;
    left: 20%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* ===== Feature Cards ===== */
.feature-card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* ===== Category Badges ===== */
.category-badge {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

/* ===== Auth Pages ===== */
.auth-container {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    max-width: 450px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.auth-card .card-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border-radius: 20px 20px 0 0 !important;
    padding: 2rem;
}

.auth-card .card-body {
    padding: 2rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* ===== Dashboard ===== */
.sidebar {
    min-height: calc(100vh - 56px);
    background: linear-gradient(180deg, #212529 0%, #343a40 100%);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link i {
    width: 24px;
}

/* ===== Calendar ===== */
.calendar-container {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.calendar-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: #fff;
    padding: 1.5rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #e9ecef;
}

.calendar-day-header {
    background-color: #f8f9fa;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    color: #495057;
}

.calendar-day {
    background-color: #fff;
    min-height: 100px;
    padding: 0.5rem;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day:hover {
    background-color: #f8f9fa;
}

.calendar-day.today {
    background-color: #e3f2fd;
}

.calendar-day.other-month {
    background-color: #f8f9fa;
    color: #adb5bd;
}

.day-number {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.calendar-day.today .day-number {
    background-color: #0d6efd;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Event Items ===== */
.event-item {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-item:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.event-more {
    font-size: 0.7rem;
    color: #6c757d;
    text-align: center;
}

/* ===== Event Cards ===== */
.event-card {
    border-left: 4px solid;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-card .event-time {
    font-size: 0.85rem;
    color: #6c757d;
}

.event-card .event-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* ===== Stats Cards ===== */
.stats-card {
    border-radius: 15px;
    border: none;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stats-card .stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stats-card .stats-number {
    font-size: 2rem;
    font-weight: 700;
}

/* ===== Modals ===== */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.modal-footer {
    border-top: none;
}

/* ===== Buttons ===== */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-success {
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
}

.btn-danger {
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* ===== Alerts ===== */
.alert {
    border-radius: 10px;
    border: none;
}

/* ===== Tables ===== */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* ===== Dropdown ===== */
.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-image {
        display: none;
    }
    
    .sidebar {
        min-height: auto;
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 0.25rem;
    }
    
    .event-item {
        font-size: 0.65rem;
        padding: 0.1rem 0.25rem;
    }
    
    .stats-card .stats-number {
        font-size: 1.5rem;
    }
}

/* ===== Loading Spinner ===== */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* ===== Toast ===== */
.toast-container {
    z-index: 9999;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ===== Status Badges ===== */
.status-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 20px;
}

.status-planned {
    background-color: #cfe2ff;
    color: #084298;
}

.status-ongoing {
    background-color: #fff3cd;
    color: #664d03;
}

.status-completed {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #842029;
}
