﻿:root {
    --monday-bg: #f6f7fb;
    --monday-card: #ffffff;
    --monday-primary: #4f46e5;
    --monday-secondary: #4338ca;
    --monday-text: #323338;
    --monday-subtext: #676879;
    --monday-border: #e6e9ef;
    --radius: 16px;
    --shadow: 0 6px 15px rgba(0,0,0,0.08);
}


html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Monday.com Style Navigation */
.monday-nav .nav-item {
    margin-left: 1rem;
}

.monday-nav .nav-link {
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #555 !important;
    transition: all 0.2s ease;
}

    /* Hover like Monday.com */
    .monday-nav .nav-link:hover {
        background: #f2f2f2;
        color: #333 !important;
    }

    /* Active like Monday.com */
    .monday-nav .nav-link.active {
        background: #e6f4ff;
        color: #0073ea !important;
        font-weight: 600;
        border-radius: 10px;
        box-shadow: inset 0 0 0 1.5px #0073ea;
    }

/* Monday.com style small select */
#dateRangeSelect {
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-size: 0.875rem;
}

    #dateRangeSelect:focus {
        border-color: #0073ea;
        box-shadow: 0 0 0 0.2rem rgba(0, 115, 234, 0.25);
        outline: none;
    }

.monday-container {
    background: var(--monday-bg);
    padding: 20px;
    border-radius: var(--radius);
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--monday-text);
}

.monday-card {
    background: var(--monday-card);
    padding: 26px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--monday-border);
}

.stat-card {
    text-align: center;
}

.stat-title {
    font-size: 15px;
    color: var(--monday-subtext);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 34px;
    font-weight: 700;
    color: var(--monday-primary);
}

.status-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    color: white;
}

.status-green {
    background: #22c55e;
}

.status-yellow {
    background: #eab308;
    color: #333;
}

.status-red {
    background: #ef4444;
}
.status-gray {
    background-color: #f1f5f9;
    color: #475569;
}

.status-orange {
    background-color: #ffedd5;
    color: #9a3412;
}

.status-blue {
    background-color: #dbeafe;
    color: #1e40af;
}


.monday-table thead th {
    background: var(--monday-bg);
    border-bottom: 2px solid var(--monday-border);
    color: var(--monday-text);
    font-weight: 600;
}

.monday-table tbody tr:hover {
    background: #eef1fd;
}

.monday-table td,
.monday-table th {
    padding: 14px;
    vertical-align: middle;
}

.card-header-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--monday-text);
    margin-bottom: 20px;
}

.btn-primary {
    background: var(--monday-primary) !important;
    border: none !important;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 600;
}

    .btn-primary:hover {
        background: var(--monday-secondary) !important;
    }

.btn-save-primary {
    background: var(--monday-primary) !important;
    border: none !important;
    border-radius: 0.5rem;
    padding: 7px 1rem;
    font-weight: 400;
    color: white;
}

    .btn-save-primary:hover {
        background: var(--monday-secondary) !important;
        color: white;
    }

.monday-table tbody td {
    border-bottom: 1px solid var(--monday-border);
}

.monday-table tbody tr:first-child td:first-child {
    border-top-left-radius: 10px;
}

.monday-table tbody tr:first-child td:last-child {
    border-top-right-radius: 10px;
}

.monday-table {
    white-space: nowrap !important;
}

.table-responsive {
    overflow-x: auto !important;
}

.monday-table-wrapper {
    border-radius: 14px;
    overflow: hidden; /* VERY IMPORTANT */
    border: 1px solid #e5e7eb;
    background: #fff;
}

/*Tutor Form Style*/
.monday-request-form {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.request-form-header {
    background-color: #3b82f6;
    color: #fff;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.monday-request-form .form-label {
    font-size: 0.9rem;
    color: #334155;
}

.monday-request-form .form-control {
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
}

.monday-request-form .form-select {
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
}

.monday-request-form .btn-primary {
    background-color: #3b82f6;
    border: none;
    box-shadow: 0 2px 6px rgba(59,130,246,0.3);
}

    .monday-request-form .btn-primary:hover {
        background-color: #2563eb;
    }

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

    .custom-checkbox input {
        display: none;
    }

    .custom-checkbox .checkmark {
        width: 18px;
        height: 18px;
        border-radius: 6px;
        border: 2px solid #c3c6d1;
        background-color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

        /* Check icon */
        .custom-checkbox .checkmark::after {
            content: "✔";
            font-size: 12px;
            color: white;
            opacity: 0;
            transform: scale(0.8);
            transition: all 0.15s ease;
        }

    /* Checked state */
    .custom-checkbox input:checked + .checkmark {
        background-color: #0d6efd;
        border-color: #0d6efd;
    }

        .custom-checkbox input:checked + .checkmark::after {
            opacity: 1;
            transform: scale(1);
        }

    /* Disabled */
    .custom-checkbox input:disabled + .checkmark {
        background-color: #f1f2f6;
        border-color: #d6d8e0;
        cursor: not-allowed;
    }

        .custom-checkbox input:disabled + .checkmark::after {
            color: #9aa0b3;
        }

/* Label text */
.checkbox-label {
    font-weight: 500;
    color: #444;
}

/* Select All Section */

.select-all-wrapper {
    padding: 5px 5px;
    background: #f8f9fc;
}

/* Tutor Row Alignment */
.monday-tutor-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    margin-bottom: 12px;
}



/* Modal Backdrop */
.monday-modal-backdrop {
    display: block;
    background: rgba(15, 23, 42, 0.45);
}

/* Modal Container */
.monday-modal {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Modal Header */
.monday-modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 20px;
}

    .monday-modal-header h5 {
        font-weight: 700;
        color: #0f172a;
    }

/* Modal Body */
.monday-modal-body {
    padding: 20px;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 5px;
}

/* Tutor List */
.monday-tutor-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Tutor Row */
.monday-tutor-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

    .monday-tutor-row:hover {
        box-shadow: 0 8px 20px rgba(0,0,0,0.06);
        transform: translateY(-1px);
    }

/* Tutor Info */
.tutor-name {
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tutor-meta {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}



/* Assign Button */
.monday-assign-btn {
    background-color: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 600;
}

    .monday-assign-btn:hover:not(:disabled) {
        background-color: #2563eb;
        color:white;
    }

    .monday-assign-btn:disabled {
        background-color: #cbd5e1;
        cursor: not-allowed;
    }

/* Modal Footer */
.monday-modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 12px 20px;
}

/* Secondary Button */
.monday-secondary-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 999px;
    padding: 6px 16px;
    font-weight: 600;
    color: #334155;
}

/* Tutor Request Log */
.tutor-log-card {
    border-left: 6px solid #dee2e6;
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.tutor-log-notified {
    border-left-color: #0d6efd;
    background: #eef5ff;
}

.tutor-log-accepted {
    border-left-color: #198754;
    background: #ecfdf3;
}

.tutor-log-declined {
    border-left-color: #dc3545;
    background: #fff1f2;
}

.tutor-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tutor-log-action {
    font-weight: 600;
}

.tutor-log-time {
    font-size: 0.8rem;
    color: #6c757d;
}

.tutor-log-student {
    font-weight: 600;
    margin-top: 6px;
}

.tutor-log-booking {
    font-size: 0.85rem;
    color: #495057;
}

.monday-section {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.monday-info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
}

    .info-row:not(:last-child) {
        border-bottom: 1px solid #f1f5f9;
    }

.info-label {
    font-size: 0.85rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
}


/*Payroll style*/
.payroll-list {
    max-height: 400px; /* scrollable */
    overflow-y: auto;
}

.payroll-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

    .payroll-row > div {
        flex: 1;
        text-align: center;
    }

.rate-input, .amount-input, .expertise-input {
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 0.9rem;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    transition: all 0.2s ease;
    text-align: center;
}

    .rate-input:focus, .amount-input:focus, .expertise-input:focus{
        border-color: #3b82f6;
        background-color: #fff;
        box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
    }


/*Loading Style*/
#loadingOverlay {
    position: fixed;
    inset: 0;
    background: #f6f7fb;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card container */
.monday-loader {
    background: #ffffff;
    padding: 28px 36px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 220px;
}

/* Animated dots */
.monday-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

    .monday-dots span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #6161ff; /* Monday primary */
        animation: dotPulse 1.4s ease-in-out infinite both;
    }

        .monday-dots span:nth-child(1) {
            animation-delay: -0.32s;
        }

        .monday-dots span:nth-child(2) {
            animation-delay: -0.16s;
        }

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.3;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Text */
.loading-text {
    font-size: 14px;
    font-weight: 600;
    color: #323338;
    letter-spacing: 0.2px;
}

/* Hide transition */
#loadingOverlay.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

/* PILL METRIC CARD */
.metric-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 999px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    height: 100%;
}

    /* Icon bubble */
    .metric-pill .metric-icon {
        width: 44px;
        height: 44px;
        background: #ffffff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
    }

/* Text */
.metric-content {
    display: flex;
    flex-direction: column;
}

.metric-title {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.9;
}

.metric-value {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.metric-sub {
    font-size: 0.7rem;
    opacity: 0.85;
}

/* COLOR GRADIENTS */
.bg-green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.bg-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.bg-pink {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
}

.bg-orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.bg-purple {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.bg-teal {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
}

/* Icon color inside bubble */
.bg-green .metric-icon {
    color: #16a34a;
}

.bg-blue .metric-icon {
    color: #2563eb;
}

.bg-pink .metric-icon {
    color: #e11d48;
}

.bg-orange .metric-icon {
    color: #ea580c;
}

.bg-purple .metric-icon {
    color: #6d28d9;
}

.bg-teal .metric-icon {
    color: #0f766e;
}

/* Shared chart area height */
.chart-body {
    flex: 1; 
    display: flex;
    align-items: center; 
    justify-content: center;
}

/* Pie-specific sizing */
.pie-wrapper {
    width: 300px;
    height: 300px;
}

/* Optional: make bar chart fill space nicely */
.chart-body canvas {
    max-height: 100%;
}

.readonly-input {
    cursor: not-allowed;
}

