﻿.agenda-page {
    min-height: 100vh;
    padding: 20px;
    background: #f6f8fc;
    color: #0f172a;
    font-family: Inter, Arial, sans-serif;
}

.agenda-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

    .agenda-header h3 {
        margin: 0 0 5px;
        font-size: 25px;
        font-weight: 750;
        color: #0f172a;
    }

    .agenda-header p {
        margin: 0;
        font-size: 14px;
        color: #64748b;
    }

.btn-add-agenda {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    background: #1677ff;
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(22, 119, 255, .2);
}

    .btn-add-agenda:hover {
        background: #0969da;
    }

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.summary-card {
    min-height: 100px;
    padding: 18px;
    border: 1px solid;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .summary-card span {
        display: block;
        margin-bottom: 5px;
        font-size: 13px;
        font-weight: 600;
    }

    .summary-card strong {
        display: block;
        font-size: 30px;
        line-height: 1;
        font-weight: 750;
    }

    .summary-card > i {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 21px;
        background: rgba(255, 255, 255, .7);
    }

.summary-blue {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.summary-orange {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.summary-purple {
    border-color: #ddd6fe;
    background: #f5f3ff;
    color: #7c3aed;
}

.summary-red {
    border-color: #fecaca;
    background: #fef2f2;
    color: #dc2626;
}

.agenda-filter-card,
.calendar-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
}

.agenda-filter-card {
    min-height: 82px;
    padding: 14px 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.agenda-filter-group {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.filter-field {
    width: 190px;
}

    .filter-field label {
        display: block;
        margin-bottom: 5px;
        font-size: 12px;
        font-weight: 650;
        color: #475569;
    }

    .filter-field .form-select {
        min-height: 39px;
        font-size: 13px;
        border-color: #dbe3ed;
    }

.agenda-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    padding-bottom: 8px;
}

    .agenda-legend span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        color: #64748b;
    }

.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
}

.legend-meeting {
    background: #2563eb;
}

.legend-evaluation {
    background: #8b5cf6;
}

.legend-review,
.legend-completed {
    background: #16a34a;
}

.legend-reminder {
    background: #f59e0b;
}

.calendar-card {
    padding: 16px;
    overflow: hidden;
}

#agenda-calendar {
    min-height: 680px;
}

.agenda-page .fc .fc-toolbar-title {
    font-size: 21px;
    font-weight: 750;
    color: #0f172a;
}

.agenda-page .fc .fc-button {
    min-height: 37px;
    border-radius: 7px !important;
    border-color: #dbe3ed;
    background: #fff;
    color: #334155;
    font-size: 13px;
    box-shadow: none !important;
}

    .agenda-page .fc .fc-button:hover {
        background: #f1f5f9;
        color: #0f172a;
    }

.agenda-page .fc .fc-button-primary:not(:disabled).fc-button-active {
    border-color: #1677ff;
    background: #1677ff;
    color: #fff;
}

.agenda-page .fc-theme-standard th,
.agenda-page .fc-theme-standard td,
.agenda-page .fc-theme-standard .fc-scrollgrid {
    border-color: #e2e8f0;
}

.agenda-page .fc .fc-col-header-cell-cushion {
    padding: 9px 4px;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.agenda-page .fc .fc-daygrid-day-number {
    padding: 7px;
    color: #475569;
    font-size: 12px;
    text-decoration: none;
}

.agenda-page .fc .fc-event {
    padding: 3px 5px;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    line-height: 1.35;
    white-space: pre-line;
}

.agenda-backdrop {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(2px);
}

.agenda-modal-wrapper {
    position: fixed;
    inset: 0;
    z-index: 5001;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agenda-modal {
    width: 920px;
    max-width: 100%;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .25);
    display: flex;
    flex-direction: column;
}

.agenda-modal-header {
    min-height: 75px;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .agenda-modal-header h4 {
        margin: 0 0 3px;
        font-size: 19px;
        font-weight: 750;
    }

    .agenda-modal-header span {
        font-size: 12px;
        color: #64748b;
    }

.agenda-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
}

.agenda-tabs {
    min-height: 52px;
    padding: 0 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: stretch;
    gap: 22px;
}

.agenda-tab {
    position: relative;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

    .agenda-tab.active {
        color: #1677ff;
    }

        .agenda-tab.active::after {
            content: "";
            position: absolute;
            right: 0;
            bottom: 0;
            left: 0;
            height: 2px;
            background: #1677ff;
        }

    .agenda-tab span {
        margin-left: 4px;
        padding: 2px 6px;
        border-radius: 99px;
        background: #eff6ff;
        color: #2563eb;
        font-size: 10px;
    }

.agenda-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.agenda-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.agenda-span-2 {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 650;
    color: #334155;
}

    .form-group label span {
        color: #dc2626;
    }

.form-group .form-control,
.form-group .form-select {
    min-height: 40px;
    border: 1px solid #dbe3ed;
    border-radius: 7px;
    font-size: 13px;
    color: #0f172a;
    box-shadow: none;
}

    .form-group .form-control:focus,
    .form-group .form-select:focus {
        border-color: #60a5fa;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
    }

.agenda-textarea {
    min-height: 100px;
    resize: vertical;
}

.result-textarea {
    min-height: 125px;
    resize: vertical;
}

.agenda-result-form {
    display: grid;
    gap: 16px;
}

.previous-meeting-card {
    padding: 13px 15px;
    border: 1px solid #bbf7d0;
    border-radius: 9px;
    background: #f0fdf4;
}

    .previous-meeting-card strong {
        display: block;
        margin-bottom: 8px;
        font-size: 13px;
        color: #166534;
    }

.previous-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .previous-summary span {
        padding: 4px 9px;
        border-radius: 99px;
        background: #fff;
        color: #15803d;
        font-size: 11px;
        font-weight: 650;
    }

.agenda-modal-footer {
    margin-top: 22px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 9px;
}

.btn-save-agenda,
.btn-cancel-agenda,
.btn-delete-agenda,
.btn-add-followup {
    min-height: 39px;
    padding: 0 15px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 650;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
}

.btn-save-agenda {
    border: 1px solid #1677ff;
    background: #1677ff;
    color: #fff;
}

.btn-cancel-agenda {
    border: 1px solid #dbe3ed;
    background: #fff;
    color: #475569;
}

.btn-delete-agenda {
    border: 1px solid #fecaca;
    background: #fff;
    color: #dc2626;
}

.btn-add-followup {
    margin-bottom: 15px;
    border: 1px solid #1677ff;
    background: #1677ff;
    color: #fff;
}

.follow-up-form {
    padding: 15px;
    margin-bottom: 16px;
    border: 1px solid #dbeafe;
    border-radius: 9px;
    background: #f8fbff;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.follow-up-wide {
    grid-column: span 2;
}

.follow-up-form-actions {
    grid-column: span 2;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.follow-up-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
}

.follow-up-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
}

    .follow-up-table th {
        padding: 11px 12px;
        border-bottom: 1px solid #e2e8f0;
        background: #f8fafc;
        color: #475569;
        font-size: 11px;
        font-weight: 700;
        text-align: left;
    }

    .follow-up-table td {
        padding: 12px;
        border-bottom: 1px solid #eef2f7;
        color: #334155;
        font-size: 12px;
        vertical-align: middle;
    }

        .follow-up-table td strong {
            display: block;
            font-size: 12px;
            color: #0f172a;
        }

        .follow-up-table td small {
            display: block;
            margin-top: 4px;
            color: #64748b;
        }

.progress-editor {
    min-width: 150px;
    display: grid;
    grid-template-columns: 50px 1fr 35px;
    align-items: center;
    gap: 7px;
}

    .progress-editor input {
        width: 50px;
        min-height: 31px;
        border: 1px solid #dbe3ed;
        border-radius: 6px;
        text-align: center;
    }

.progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 99px;
    background: #e2e8f0;
}

.progress-value {
    height: 100%;
    border-radius: inherit;
    background: #16a34a;
}

.follow-up-badge {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

    .follow-up-badge.completed {
        background: #dcfce7;
        color: #15803d;
    }

    .follow-up-badge.progress {
        background: #ffedd5;
        color: #c2410c;
    }

    .follow-up-badge.late {
        background: #fee2e2;
        color: #dc2626;
    }

    .follow-up-badge.not-started {
        background: #f1f5f9;
        color: #64748b;
    }

    .follow-up-badge.cancelled {
        background: #e2e8f0;
        color: #475569;
    }

.follow-up-delete {
    width: 32px;
    height: 32px;
    border: 1px solid #fecaca;
    border-radius: 6px;
    background: #fff;
    color: #dc2626;
    cursor: pointer;
}

.empty-follow-up {
    padding: 30px !important;
    text-align: center;
    color: #94a3b8 !important;
}

@media (max-width: 1050px) {
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .agenda-filter-card {
        align-items: stretch;
        flex-direction: column;
    }

    .agenda-legend {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .agenda-page {
        padding: 12px;
    }

    .agenda-header {
        align-items: stretch;
        flex-direction: column;
    }

    .btn-add-agenda {
        width: 100%;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .summary-card {
        min-height: 85px;
    }

    .agenda-filter-group {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-field {
        width: 100%;
    }

    .calendar-card {
        padding: 8px;
        overflow-x: auto;
    }

    #agenda-calendar {
        min-width: 720px;
    }

    .agenda-modal-wrapper {
        padding: 0;
        align-items: flex-end;
    }

    .agenda-modal {
        width: 100%;
        max-height: 94vh;
        border-radius: 15px 15px 0 0;
    }

    .agenda-modal-header {
        padding: 14px;
    }

    .agenda-tabs {
        padding: 0 14px;
        overflow-x: auto;
    }

    .agenda-tab {
        min-width: max-content;
    }

    .agenda-modal-body {
        padding: 14px;
    }

    .agenda-form-grid,
    .follow-up-form {
        grid-template-columns: 1fr;
    }

    .agenda-span-2,
    .follow-up-wide,
    .follow-up-form-actions {
        grid-column: span 1;
    }

    .agenda-modal-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .footer-right {
        width: 100%;
    }

    .btn-delete-agenda,
    .btn-cancel-agenda,
    .btn-save-agenda {
        flex: 1;
    }
}


/* PARTICIPANT SECTION */
.participant-section {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

    .participant-section label {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: 600;
        color: #0f172a;
    }

.participant-add-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .participant-add-row .form-control {
        flex: 1;
        min-width: 0;
        height: 42px;
        border: 1px solid #cbd5e1;
        border-radius: 9px;
        background: #ffffff;
        font-size: 14px;
    }

.btn-add-participant {
    height: 42px;
    padding: 0 16px;
    border: none;
    border-radius: 9px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s ease;
}

    .btn-add-participant:hover {
        background: #1d4ed8;
    }

.participant-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.participant-item {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.participant-info {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.participant-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.participant-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    .participant-text strong {
        overflow: hidden;
        color: #0f172a;
        font-size: 14px;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .participant-text small {
        margin-top: 2px;
        overflow: hidden;
        color: #64748b;
        font-size: 12px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.btn-remove-participant {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
}

    .btn-remove-participant:hover {
        background: #fecaca;
        color: #b91c1c;
    }

.participant-empty {
    margin-top: 12px;
    padding: 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 9px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
    background: #ffffff;
}

@media (max-width: 768px) {
    .participant-add-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-add-participant {
        width: 100%;
    }

    .participant-list {
        grid-template-columns: 1fr;
    }
}