/* Takvim Stilleri */
.calendar-control-panel {
    background-color: #151A1D;
    border-radius: 17px;
    width: 530.5px;
    height: 591px;
    color: #fff;
    transition: all 0.3s ease;
}

.calendar-panel-title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

.calendar-sayfa-gec-mobile {
    background-color: #151A1D;
    border-radius: 17px;
    height: 60px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


.calendar-add-button {
    width: 100%;
    background-color: #1E2327;
    border: none;
    border-radius: 12px;
    color: #fff;
    padding: 12px 20px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.calendar-add-button:hover {
    background-color: #3a3a3a;
    transform: translateY(-2px);
}

/* Yaklaşan Etkinlikler Stilleri */
.calendar-upcoming-events {
    margin-top: 30px;
    background-color: #1E2327;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    height: 417px;
}

.calendar-upcoming-events h5 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
}

.calendar-upcoming-events h5::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background-color: #aaaaaa;
    margin-right: 0.75rem;
    border-radius: 2px;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: auto;
    max-height: 325px;
    overflow: visible;
    padding-right: 1rem;
}

.events-list::-webkit-scrollbar {
    display: none;
}

.events-list::-webkit-scrollbar-track {
    display: none;
}

.events-list::-webkit-scrollbar-thumb {
    display: none;
}

.upcoming-event {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    width: 440px;
    transition: all 0.3s ease;
}

.upcoming-event:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.upcoming-event .event-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.75rem;
    vertical-align: middle;
}

.upcoming-event .event-title {
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.5rem;
    display: block;
}

.upcoming-event .event-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upcoming-event .event-date::before {
    content: '📅';
    font-size: 1rem;
}

.upcoming-event .event-content {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* Yaklaşan Etkinlikler Boş Durum */
.events-list:empty::after {
    content: 'Yaklaşan etkinlik bulunmuyor';
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 1rem;
    font-style: italic;
    height: 530px;
}

/* Slider Kontrolleri */
.events-slider-controls {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    display: flex;
    gap: 0.5rem;
}

.slider-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-control:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.slider-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.calendar-container {
    background-color: #151A1D;
    border-radius: 17px;
    padding: 20px;
    height: 808.5px;
    color: #fff;
    width: 57.3%;
    margin-left: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    margin-bottom: 20px;
}

.calendar-header h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.calendar-nav-button {
    background-color: #1E2327;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.calendar-nav-button:hover {
    background-color: #3a3a3a;
    transform: translateY(-2px);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 600;
    color: #888;
}

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

.calendar-day {
    border: 1px solid #35393D;
    position: relative;
    min-height: 100px;
    height: 100px;
    max-height: 100px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    max-width: 100%;
    box-sizing: border-box;
}

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

.calendar-day.calendar-other-month {
    opacity: 0.5;
    background-color: #1e232892;
}

.calendar-day.calendar-other-month:hover {
    background-color: #2a2a2a;
    opacity: 0.7;
}

.calendar-day.today {
    background-color: rgba(58, 108, 151, 0.2);
    border: 2px solid #3a6c97;
}

.calendar-day.past-day {
    background-color: #1e232892;
}



.calendar-day-number {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
    color: #f0f0f0;
    z-index: 1;
    height: 20px;
}

.calendar-day.calendar-other-month .calendar-day-number {
    color: #999;
}

.calendar-day.today .calendar-day-number {
    color: #6fafe8;
    font-weight: bold;
}

.calendar-event-title {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
    max-width: calc(100% - 15px);
}

.calendar-event-more {
    font-size: 10px;
    text-align: center;
    color: #aaa;
    padding: 2px;
    height: 16px;
    margin-top: 0;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}

.calendar-event-more:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.calendar-event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
    display: inline-block;
    flex-shrink: 0;
}

.calendar-events-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-height: calc(100% - 30px);
    overflow: hidden;
    padding-right: 2px;
    margin-bottom: 2px;
    gap: 2px;
}

.calendar-events-container::-webkit-scrollbar {
    display: none;
}

.calendar-events-container::-webkit-scrollbar-track {
    display: none;
}

.calendar-events-container::-webkit-scrollbar-thumb {
    display: none;
}

.calendar-event-item {
    display: flex;
    align-items: center;
    height: 20px;
    padding: 2px 4px;
    margin-bottom: 0;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: move;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
}

.calendar-event-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.calendar-event-item.dragging {
    opacity: 0.5;
    background-color: rgba(255, 255, 255, 0.2);
}

.calendar-day.drag-over {
    background-color: rgba(76, 175, 80, 0.1);
    border: 2px dashed #4CAF50;
}

.calendar-day.drag-over .calendar-day-number {
    color: #4CAF50;
    font-weight: bold;
}

.calendar-event-content {
    color: inherit;
}

.calendar-event-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: 3px;
}

.calendar-event-edit, 
.calendar-event-delete {
    opacity: 0.7;
    transition: opacity 0.2s ease;
    cursor: pointer !important;
}

.calendar-event-edit:hover, 
.calendar-event-delete:hover {
    opacity: 1;
}




.calendar-back-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #282828;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.calendar-back-button:hover {
    background-color: #3a3a3a;
    transform: translateX(-3px);
}

#panel-activity-form,
#panel-repeat-form {
    animation: fadeIn 0.3s ease;
    height: 100%;
    overflow-y: auto;
}

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

.form-transition {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-transition.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.form-transition.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.char-counter {
    color: #aaa;
    font-size: 0.8rem;
    display: block;
    text-align: right;
    margin-top: 5px;
}

/* Modal Stilleri */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 500px;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #1C1B0E;
    border: 1px solid #282828;
    border-radius: 17px;
    outline: 0;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* Form Elemanları */
.calendar-form-control,
.calendar-form-select {
    background-color: #282828;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
    line-height: 1.5;
    pointer-events: auto;
    z-index: 1;
}

.calendar-form-control:focus,
.calendar-form-select:focus {
    background-color: #3a3a3a;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.25);
    border-color: #4CAF50;
    outline: none;
}

.calendar-form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.calendar-form-control:disabled {
    background-color: #1a1a1a;
    cursor: not-allowed;
    opacity: 0.7;
}

.calendar-form-control[type="datetime-local"] {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 1.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
}

.calendar-form-control[type="color"] {
    height: 40px;
    padding: 0.25rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-form-control[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.calendar-form-control[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
}

textarea.calendar-form-control {
    min-height: 100px;
    resize: vertical;
}

.calendar-form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
    padding-right: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.calendar-form-select option[disabled] {
    color: rgba(255, 255, 255, 0.5);
}

.calendar-form-select option {
    background-color: #282828;
    color: #fff;
}

/* Form Grupları */
.mb-3 {
    margin-bottom: 1.2rem;
}

.mb-3:last-child {
    margin-bottom: 0;
}

.calendar-form-label {
    color: #fff;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.calendar-form-control-color {
    height: 40px;
    padding: 0.25rem;
    cursor: pointer;
}

.calendar-btn-primary {
    background-color: #4CAF50;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.calendar-btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.25);
}

.calendar-btn-secondary {
    background-color: #282828;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.calendar-btn-secondary:hover {
    background-color: #3a3a3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.calendar-btn-danger {
    background-color: #dc3545;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.calendar-btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.25);
}

.calendar-btn-danger:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Event Detail Modal */
.event-list-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    background-color: #282828;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-left: 4px solid;
    margin-bottom: 8px;
}

.event-list-item:hover {
    background-color: #333;
}

.event-list-item h5 {
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
}

.event-list-item p {
    margin: 0;
    font-size: 13px;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-list-item .chevron {
    margin-left: 10px;
    color: #666;
    font-size: 20px;
}

.event-detail {
    background-color: #282828;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.event-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.event-detail-header h5 {
    margin: 0;
}

.event-detail-date {
    color: #999;
    font-size: 14px;
}

.event-detail-content {
    margin-bottom: 10px;
}

.event-detail-footer {
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #333;
    color: #bbb;
    font-size: 14px;
}



/* Erişilebilirlik İyileştirmeleri */
.calendar-nav-button:focus,
.calendar-add-button:focus,
.calendar-day:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

.calendar-form-control:focus,
.calendar-form-select:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* Animasyon Optimizasyonları */
@media (prefers-reduced-motion: reduce) {
    .calendar-day,
    .calendar-add-button,
    .calendar-nav-button,
    .calendar-btn-primary,
    .calendar-btn-secondary {
        transition: none;
    }
}

/* Modal İçeriği */
.calendar-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #1C1B0E;
    border: 1px solid #282828;
    border-radius: 17px;
    outline: 0;
}

.calendar-modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #282828;
    border-top-left-radius: 17px;
    border-top-right-radius: 17px;
}

.calendar-modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1.5rem;
    pointer-events: auto;
}

.calendar-modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 1px solid #282828;
    border-bottom-right-radius: 17px;
    border-bottom-left-radius: 17px;
}

/* Butonlar */
.calendar-btn-primary,
.calendar-btn-secondary {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.calendar-sayfa-gec {
    background-color: #151A1D;
    border-radius: 17px;
    height: 192px;
    width: 530px;
    max-width: 100%;
    margin: 27px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modernize edilmiş tarih girişi */
.calendar-date-only {
    background-image: none;
    padding-right: 2.5rem;
}

.position-relative {
    position: relative;
}

.calendar-date-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    width: 2.5rem;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
}

/* Modernize edilmiş renk seçici */
.color-picker-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 8px;
}

.color-preview {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.calendar-color-input {
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    position: absolute;
}

/* Karakter sayacı */
.char-counter {
    color: #aaa;
    font-size: 0.8rem;
    display: block;
    text-align: right;
    margin-top: 5px;
}

/* Form panelleri */
#panel-activity-form,
#panel-repeat-form {
    animation: fadeIn 0.3s ease;
    height: 100%;
    overflow-y: auto;
}

/* Daha kompakt alanlar için */
.mb-3 {
    margin-bottom: 1.2rem;
}

.mb-3:last-child {
    margin-bottom: 0;
}

/* Minimal textarea */
textarea.calendar-form-control {
    min-height: 80px;
    resize: vertical;
}

/* Form seçim öğeleri */
.calendar-form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
    padding-right: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.calendar-form-select option[disabled] {
    color: rgba(255, 255, 255, 0.5);
}

.calendar-form-select option {
    background-color: #282828;
    color: #fff;
}

/* Butonlar */
.calendar-btn-primary,
.calendar-btn-secondary {
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.calendar-btn-primary:hover,
.calendar-btn-secondary:hover {
    transform: translateY(-2px);
}

/* RESPONSIVE */

@media (max-width: 1180.98px) {
    .calendar-control-panel {
        width: 480px;
    }
    .upcoming-event {
        width: 390px;
    }
}

@media (max-width: 960px) {
    .calendar-control-panel {
        width: 430px;
    }
    .upcoming-event {
        width: 340px;
    }
}

@media (max-width: 840px) {
    .calendar-control-panel {
        width: 380px;
    }
    .upcoming-event {
        width: 290px;
    }
}

@media (max-width: 790px) {
    .calendar-control-panel {
        width: 330px;
    }
    .upcoming-event {
        width: 240px;
    }
}

@media (max-width: 769px) {
    .row {
        display: block;
    }
    
    .calendar-container, 
    .calendar-control-panel,
    .calendar-sayfa-gec-mobile {
        width: 90% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 30px;
    }

    .upcoming-event {
        width: 105%;
    }

    .justify-content-center.d-flex {
        flex-direction: column;
        align-items: center;
    }
    
    .calendar-container {
        height: auto;
        min-height: 600px;
    }
    
    .calendar-control-panel {
        height: auto;
        min-height: 500px;
    }

    .calendar-sayfa-gec-mobile img{
        width: 50px;
        height: 50px;
    }
} 
