﻿.calendar-page {
    padding: 24px;
    background: #f5f7fb;
    min-height: 100vh;
    color: #0f172a;
}

.calendar-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

    .calendar-topbar h3 {
        font-size: 1.7rem;
        font-weight: 800;
        margin-bottom: 4px;
        color: #111827;
    }

    .calendar-topbar p {
        margin: 0;
        color: #64748b;
    }

.calendar-stat-card,
.calendar-filter-card,
.calendar-side-card,
.calendar-shell {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.calendar-stat-card {
    padding: 18px;
    min-height: 105px;
    border: 1px solid #eef2f7;
}

    .calendar-stat-card span {
        display: block;
        color: #64748b;
        font-size: .84rem;
        margin-bottom: 6px;
    }

    .calendar-stat-card h3 {
        margin: 0;
        font-size: 1.8rem;
        font-weight: 800;
        color: #111827;
    }

.calendar-filter-card {
    padding: 18px;
    border: 1px solid #eef2f7;
}

.calendar-shell {
    padding: 22px;
    border: 1px solid #eef2f7;
}

.calendar-side-card {
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid #eef2f7;
}

    .calendar-side-card .card-title {
        font-weight: 800;
        margin-bottom: 14px;
        color: #111827;
    }

.empty-text {
    font-size: .9rem;
    color: #94a3b8;
}

#calendar {
    min-height: 720px;
}

.fc .fc-toolbar-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
}

.fc .fc-button {
    border-radius: 10px !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
}

.fc-event {
    border: 0 !important;
    border-radius: 10px !important;
    padding: 4px 7px !important;
    font-size: .82rem !important;
    cursor: pointer;
}

/* Takvim görev renkleri */
.event-normal {
    background: #0d6efd !important;
    color: #fff !important;
}

.event-progress {
    background: #6610f2 !important;
    color: #fff !important;
}

.event-warning {
    background: #ffc107 !important;
    color: #111827 !important;
}

.event-danger {
    background: #dc3545 !important;
    color: #fff !important;
}

.event-completed {
    background: #198754 !important;
    color: #fff !important;
    opacity: .88;
}

.event-cancelled {
    background: #6c757d !important;
    color: #fff !important;
    text-decoration: line-through;
}

/* Küçük görev kartları */
.task-mini {
    border-left: 4px solid #0d6efd;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    margin-bottom: 10px;
}

    .task-mini strong {
        display: block;
        font-size: .92rem;
        color: #111827;
    }

    .task-mini small {
        display: block;
        color: #64748b;
        margin-top: 3px;
    }

    .task-mini.warning {
        border-left-color: #ffc107;
        background: #fff8e1;
    }

    .task-mini.danger {
        border-left-color: #dc3545;
        background: #fff1f2;
    }

    .task-mini.success {
        border-left-color: #198754;
        background: #ecfdf5;
    }

/* Geciken iş kartları */
.delayed-task-card {
    border-left: 5px solid #dc3545;
    background: #fff1f2;
    border-radius: 18px;
    padding: 15px;
    height: 100%;
    transition: .2s ease;
}

    .delayed-task-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(220, 53, 69, .14);
    }

    .delayed-task-card strong {
        display: block;
        color: #4338ca;
        font-size: .94rem;
        margin-bottom: 5px;
    }

    .delayed-task-card small {
        display: block;
        color: #64748b;
        margin-top: 3px;
    }

/* Butonlar */
.task-action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

    .task-action-buttons .btn {
        border-radius: 999px;
        font-size: .78rem;
        font-weight: 700;
        padding: 6px 10px;
    }

/* Ay gün listesi */
.calendar-day-row {
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e9ecef;
    transition: .2s ease;
}

    .calendar-day-row:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(0,0,0,.06);
    }

.calendar-day-empty {
    background: #f0fff4;
    border-color: #c6f6d5;
}

.calendar-day-weekend-empty {
    background: #fff5f5;
    border-color: #fed7d7;
}

.calendar-day-weekend {
    background: #fffafa;
    border-color: #feb2b2;
}

.calendar-day-active {
    background: #ffffff;
    border-color: #e5e7eb;
}

.calendar-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

    .calendar-day-header strong {
        font-weight: 800;
        color: #111827;
    }

.calendar-day-body {
    margin-top: 10px;
}

.weekend-badge {
    background: #fee2e2;
    color: #991b1b;
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 999px;
    font-weight: 700;
}

.empty-day-badge {
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 999px;
    font-weight: 700;
}

/* Tablolar */
.calendar-table-wrap {
    overflow-x: auto;
}

    .calendar-table-wrap table {
        min-width: 900px;
    }

.last-task-table td {
    vertical-align: middle;
}

/* Sayfalama */
.pagination .page-link {
    border-radius: 12px;
    margin: 0 3px;
    color: #222;
}

.pagination .active .page-link {
    background: #0d6efd;
    border-color: #0d6efd;
}

/* Mobil */
@media(max-width: 768px) {
    .calendar-page {
        padding: 12px;
    }

    .calendar-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

        .calendar-topbar button {
            width: 100%;
        }

    .calendar-stat-card {
        text-align: center;
    }

    .calendar-shell {
        padding: 12px;
    }

    #calendar {
        min-height: 600px;
    }

    .fc .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }

    .fc .fc-toolbar-title {
        font-size: 1.1rem;
    }

    .task-action-buttons {
        flex-direction: column;
    }

        .task-action-buttons .btn {
            width: 100%;
        }

    .calendar-day-header {
        align-items: flex-start;
        flex-direction: column;
    }
}



/* İş olmayan normal gün */
.calendar-day-empty {
    background: #ffffff;
    border-color: #e5e7eb;
}

/* İş olmayan hafta sonu */
.calendar-day-weekend-empty {
    background: #fff1f2;
    border-color: #fecdd3;
}

/* İş olan hafta sonu */
.calendar-day-weekend {
    background: #fef2f2;
    border-color: #fda4af;
}

/* İş olan normal gün */
.calendar-day-active {
    background: #ecfdf5;
    border-color: #86efac;
}

/* Geçmiş günler - pembemsi */
.calendar-day-past {
    background: #fbcece !important;
    border-color: #fecdd3 !important;
    opacity: .96;
}

    .calendar-day-past .calendar-day-header strong {
        color: #7f1d1d;
    }

    .calendar-day-past .task-mini {
        background: #fff7f7;
    }


.crm-month-progress-card {
    margin-top: 14px;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(30, 41, 59, .92));
    color: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
    overflow: hidden;
    position: relative;
}

    .crm-month-progress-card::before {
        content: "";
        position: absolute;
        inset: -80px auto auto -80px;
        width: 180px;
        height: 180px;
        border-radius: 999px;
        background: rgba(34, 197, 94, .16);
        filter: blur(4px);
    }

.crm-month-progress-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

    .crm-month-progress-head h5 {
        margin: 0;
        font-weight: 800;
        letter-spacing: -.02em;
    }

    .crm-month-progress-head span {
        display: block;
        color: rgba(255,255,255,.72);
        font-size: .86rem;
        margin-top: 2px;
    }

.crm-month-progress-ratio {
    min-width: 150px;
    text-align: right;
    font-weight: 800;
    color: #bbf7d0;
}

.crm-month-progress-track {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    overflow: hidden;
    margin-bottom: 14px;
}

.crm-month-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1e3a8a, #2563eb, #ef4444);
    box-shadow: 0 0 18px rgba(239, 68, 68, .42);
    transition: width .6s ease;
}

.crm-month-days {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
    gap: 10px;
    align-items: center;
}

.crm-month-day {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    font-size: .74rem;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,.18);
    position: relative;
    z-index: 1;
}

    .crm-month-day.is-past {
        background: #0f2f74;
        color: #dbeafe;
        box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .18);
    }

    .crm-month-day.is-future {
        background: #39ff88;
        color: #052e16;
        box-shadow: 0 0 14px rgba(57, 255, 136, .62);
    }

    .crm-month-day.is-today {
        background: #ef4444;
        color: #fff;
        border-color: rgba(255,255,255,.75);
        box-shadow: 0 0 0 4px rgba(239, 68, 68, .18), 0 0 24px rgba(239, 68, 68, .75);
        animation: crmTodayPulse 1.45s ease-out infinite;
    }

        .crm-month-day.is-today::before,
        .crm-month-day.is-today::after {
            content: "";
            position: absolute;
            inset: -7px;
            border-radius: 999px;
            border: 2px solid rgba(248, 113, 113, .72);
            animation: crmTodayWave 1.9s ease-out infinite;
            z-index: -1;
        }

        .crm-month-day.is-today::after {
            animation-delay: .65s;
        }

.crm-month-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 12px;
    color: rgba(255,255,255,.78);
    font-size: .82rem;
}

    .crm-month-legend i {
        width: 10px;
        height: 10px;
        display: inline-block;
        border-radius: 999px;
        margin-right: 6px;
        vertical-align: middle;
    }

.crm-dot-past {
    background: #0f2f74;
}

.crm-dot-today {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239,68,68,.8);
}

.crm-dot-future {
    background: #39ff88;
    box-shadow: 0 0 10px rgba(57,255,136,.7);
}

@keyframes crmTodayWave {
    0% {
        transform: scale(.72);
        opacity: .88;
    }

    80%, 100% {
        transform: scale(1.82);
        opacity: 0;
    }
}

@keyframes crmTodayPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

@media (max-width: 768px) {
    .crm-month-progress-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .crm-month-progress-ratio {
        min-width: 0;
        text-align: left;
    }

    .crm-month-days {
        grid-template-columns: repeat(7, minmax(28px, 1fr));
        gap: 8px;
    }
}


<style >
.crm-month-progress-card {
    margin-top: 14px;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(30, 41, 59, .92));
    color: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
    overflow: hidden;
    position: relative;
}

.crm-month-progress-card::before {
    content: "";
    position: absolute;
    inset: -80px auto auto -80px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(34, 197, 94, .16);
    filter: blur(4px);
}

.crm-month-progress-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

    .crm-month-progress-head h5 {
        margin: 0;
        font-weight: 800;
        letter-spacing: -.02em;
    }

    .crm-month-progress-head span {
        display: block;
        color: rgba(255,255,255,.72);
        font-size: .86rem;
        margin-top: 2px;
    }

.crm-month-progress-ratio {
    min-width: 150px;
    text-align: right;
    font-weight: 800;
    color: #bbf7d0;
}

.crm-month-progress-track {
    position: relative;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(15,47,116,.52), rgba(57,255,136,.22));
    overflow: hidden;
    margin-bottom: 14px;
}

.crm-month-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f2f74, #1d4ed8);
    box-shadow: 0 0 18px rgba(37, 99, 235, .42);
    transition: width .6s ease;
}

.crm-month-progress-marker {
    position: absolute;
    top: -5px;
    width: 3px;
    height: 24px;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239,68,68,.18), 0 0 16px rgba(239,68,68,.72);
    transform: translateX(-50%);
    transition: left .6s ease;
}

.crm-month-progress-summary {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 14px;
}

.crm-month-progress-pill {
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    background: rgba(255,255,255,.08);
    min-height: 58px;
}

    .crm-month-progress-pill small {
        display: block;
        color: rgba(255,255,255,.62);
        font-size: .72rem;
        margin-bottom: 4px;
    }

    .crm-month-progress-pill strong {
        display: block;
        color: #fff;
        font-size: .95rem;
        line-height: 1.2;
    }

    .crm-month-progress-pill.is-alert strong {
        color: #fecaca;
    }

.crm-month-days {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
    gap: 10px;
    align-items: center;
}

.crm-month-day {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    font-size: .74rem;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,.18);
    position: relative;
    z-index: 1;
}

    .crm-month-day.is-past {
        background: #0f2f74;
        color: #dbeafe;
        box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .18);
    }

    .crm-month-day.is-future {
        background: #39ff88;
        color: #052e16;
        box-shadow: 0 0 14px rgba(57, 255, 136, .62);
    }

    .crm-month-day.is-weekend {
        outline: 2px dashed rgba(255,255,255,.30);
        outline-offset: 2px;
    }

    .crm-month-day.is-today {
        background: #ef4444;
        color: #fff;
        border-color: rgba(255,255,255,.75);
        box-shadow: 0 0 0 4px rgba(239, 68, 68, .18), 0 0 24px rgba(239, 68, 68, .75);
        animation: crmTodayPulse 1.45s ease-out infinite;
    }

        .crm-month-day.is-today::before,
        .crm-month-day.is-today::after {
            content: "";
            position: absolute;
            inset: -7px;
            border-radius: 999px;
            border: 2px solid rgba(248, 113, 113, .72);
            animation: crmTodayWave 1.9s ease-out infinite;
            z-index: -1;
        }

        .crm-month-day.is-today::after {
            animation-delay: .65s;
        }

        .crm-month-day.is-today .crm-month-today-label {
            position: absolute;
            top: -28px;
            left: 50%;
            transform: translateX(-50%);
            padding: 3px 8px;
            border-radius: 999px;
            background: rgba(239,68,68,.94);
            color: #fff;
            font-size: .66rem;
            font-weight: 900;
            white-space: nowrap;
            box-shadow: 0 8px 18px rgba(0,0,0,.22);
        }

.crm-month-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 12px;
    color: rgba(255,255,255,.78);
    font-size: .82rem;
}

    .crm-month-legend i {
        width: 10px;
        height: 10px;
        display: inline-block;
        border-radius: 999px;
        margin-right: 6px;
        vertical-align: middle;
    }

.crm-dot-past {
    background: #0f2f74;
}

.crm-dot-today {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239,68,68,.8);
}

.crm-dot-future {
    background: #39ff88;
    box-shadow: 0 0 10px rgba(57,255,136,.7);
}

@keyframes crmTodayWave {
    0% {
        transform: scale(.72);
        opacity: .88;
    }

    80%, 100% {
        transform: scale(1.82);
        opacity: 0;
    }
}

@keyframes crmTodayPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

@media (max-width: 768px) {
    .crm-month-progress-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .crm-month-progress-ratio {
        min-width: 0;
        text-align: left;
    }

    .crm-month-progress-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .crm-month-days {
        grid-template-columns: repeat(7, minmax(28px, 1fr));
        gap: 8px;
    }
}

