@charset "UTF-8";

/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Stilleri */
.header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.site-title {
    font-size: 2rem;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-title i {
    color: #667eea;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.welcome-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #4a5568;
}

.admin-badge {
    background: #e53e3e;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.user-menu {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Button Stilleri */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.btn-login {
    background: #667eea;
    color: white;
}

.btn-login:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.btn-admin {
    background: #38a169;
    color: white;
}

.btn-admin:hover {
    background: #2f855a;
}

.btn-logout {
    background: #e53e3e;
    color: white;
}

.btn-logout:hover {
    background: #c53030;
}

.btn-today {
    background: #ed8936;
    color: white;
}

.btn-today:hover {
    background: #dd6b20;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
}

.btn-cancel {
    background: #a0aec0;
    color: white;
}

.btn-cancel:hover {
    background: #718096;
}

/* Takvim Navigasyon */
.calendar-nav {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn {
    background: #667eea;
    color: white;
    padding: 10px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: #5a67d8;
    transform: scale(1.1);
}

.month-year-selector {
    display: flex;
    gap: 10px;
}

.month-year-selector select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.month-year-selector select:focus {
    outline: none;
    border-color: #667eea;
}

/* Takvim */
.calendar {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 10px;
}

.day-name {
    background: #4a5568;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
}

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

.calendar-day {
    background: white;
    min-height: 120px;
    max-height: 120px;
    padding: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.calendar-day:hover {
    background: #f7fafc;
    transform: scale(1.02);
}

.calendar-day.empty {
    background: #f8f9fa;
    cursor: default;
}

.calendar-day.empty:hover {
    transform: none;
}

.calendar-day.today {
    background: #e6fffa;
    border: 2px solid #38b2ac;
}

.calendar-day.has-events {
    background: #f0fff4;
}

.day-number {
    font-weight: bold;
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 5px;
}

.today .day-number {
    color: #38b2ac;
}

.events {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.event {
    background: #667eea;
    color: white;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    max-width: 100%;
    word-wrap: break-word;
    overflow: hidden;
}

.event:hover {
    background: #5a67d8;
    transform: scale(1.05);
}

.event-time {
    font-weight: bold;
    font-size: 0.7rem;
}

.event-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.event-user {
    font-size: 0.65rem;
    opacity: 0.8;
}

.add-event-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #38a169;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.calendar-day:hover .add-event-btn {
    opacity: 1;
}

.add-event-btn:hover {
    background: #2f855a;
    transform: scale(1.1);
}

/* Modal Stilleri */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: #667eea;
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #f0f0f0;
}

.modal form {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #4a5568;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        padding-bottom: 80px; /* Bottom nav için alan bırak */
    }
    
    /* Bottom Navigation'ı mobilde göster */
    .bottom-nav {
        display: flex;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .calendar-nav {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .nav-controls {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        width: 100%;
    }
    
    .month-year-selector {
        flex-direction: row;
        gap: 8px;
        width: auto;
        justify-content: center;
    }
    
    .month-year-selector select {
        width: auto;
        min-width: 80px;
        padding: 6px 8px;
        font-size: 0.85rem;
    }
    
    .nav-arrows {
        display: flex;
        gap: 15px;
        align-items: center;
    }
    
    .nav-controls .nav-btn {
        margin: 0;
    }
    
    .today-btn {
        margin-top: 5px;
    }
    
    .today-btn .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 4px;
    }
    
    .day-name {
        padding: 10px 5px;
        font-size: 0.8rem;
    }
    
    .event {
        font-size: 0.7rem;
        padding: 2px 4px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    .event-time {
        font-size: 0.65rem;
    }
    
    .event-user {
        display: none;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .user-menu {
        justify-content: center;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 12px;
    }
    
    .btn {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    .calendar-day:active {
        background-color: #e3f2fd;
    }
    
    .event:active {
        transform: scale(0.95);
    }
}

@media (max-width: 480px) {
    .calendar-day {
        min-height: 60px;
        padding: 2px;
    }
    
    .day-number {
        font-size: 0.9rem;
    }
    
    .event-title {
        display: none;
    }
    
    .event {
        height: 8px;
        padding: 0;
        border-radius: 2px;
    }
    
    .add-event-btn {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .month-year-selector {
        flex-direction: column;
        width: 100%;
    }
    
    .month-year-selector select {
        width: 100%;
    }
}

/* Animasyonlar */
.calendar-day {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Bar Özelleştirme */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}

/* Bottom Navigation Styles */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 4px;
}

.bottom-nav .nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: #666;
    transition: all 0.3s ease;
}

.bottom-nav .nav-item span {
    font-size: 0.7rem;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.bottom-nav .nav-item.active i,
.bottom-nav .nav-item:hover i {
    color: #667eea;
    transform: scale(1.1);
}

.bottom-nav .nav-item.active span,
.bottom-nav .nav-item:hover span {
    color: #667eea;
    font-weight: 600;
}

.bottom-nav .nav-item.active {
    background: rgba(102, 126, 234, 0.1);
}

/* Event Delete Button Styles */
.delete-btn {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2) !important;
}

.delete-btn:hover {
    background: #c82333 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3) !important;
}

.delete-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2) !important;
}

.event-actions {
    margin-top: 20px !important;
    text-align: center !important;
    padding-top: 15px !important;
    border-top: 1px solid #eee !important;
}