﻿/* Existing site.css styles */
html {
    font-size: 14px;
}

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

body {
    background-color: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.bg-primary {
    background-color: #007bff !important;
}

.bg-secondary {
    background-color: #bf8040 !important;
}

.card {
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
    overflow: hidden;
}

    /* Remove jump  only subtle shadow change */
    .card:hover {
        transform: none;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    }

/*.card-header {
    padding: 0.75rem;
}*/

.badge {
    font-size: 0.9rem;
    padding: 0.35em 0.65em;
    font-weight: 600;
}

.text-muted {
    font-size: 0.95rem;
}

.welcome-heading {
    font-size: 1.5rem;
}

.text-remaining-low {
    color: #dc3545;
    font-weight: bold;
}

.text-remaining-ok {
    color: #155724;
}

.text-primary {
    transition: color 0.2s;
}

    .text-primary:hover {
        color: #0056b3;
    }

.form-label {
    color: #495057;
}

.form-control {
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    transition: border-color 0.2s ease;
}

.form-control-short {
    max-width: 200px;
}

.form-control-medium {
    max-width: 350px;
}

.form-control-long {
    max-width: 500px;
}

.form-control, .form-select {
    padding: 0.75rem;
    padding-right: 2rem;
    background-position: right 0.5rem center;
    background-size: 1rem;
    min-width: 100px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ced4da;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

    .form-control:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }

.img-fluid {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    background-color: #fff;
}

#calendar {
    max-width: 100%;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.fc {
    --fc-border-color: #e9ecef;
    --fc-daygrid-event-dot-width: 6px;
}

.fc-daygrid-day {
    border-radius: 6px;
}

.fc-event {
    font-size: 0.8rem;
    padding: 3px 5px;
    line-height: 1.2;
    white-space: normal;
    word-wrap: break-word;
    height: auto;
    border-radius: 3px;
    cursor: pointer;
}

.fc-event-title {
    white-space: normal;
    color: #000000 !important; /* Black text for titles */
}

.fc-event.approved {
    background-color: #28a745;
    border-color: #28a745;
    color: #ffffff !important;
}

.fc-event.pending {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #ffffff !important;
}

.fc-day-today {
    background-color: #e0f7fa !important;
}

.legend-item {
    margin-left: 10px;
    font-size: 1rem;
}

.color-box {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.calendar-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.legend {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 1rem;
    height: 1rem;
    border-radius: 3px;
}

    .legend-color.approved {
        background-color: #28a745;
    }

    .legend-color.pending {
        background-color: #ffc107;
    }

/* FullCalendar button styles */
.fc-button {
    background: #2c3e50 !important;
    color: #ffffff !important;
    border: 1px solid #2c3e50 !important;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
}

    .fc-button:hover {
        background: #34495e !important;
        border-color: #34495e !important;
    }

    .fc-button:focus, .fc-button:active {
        box-shadow: 0 0 0 0.2rem rgba(37, 140, 251, 0.5) !important;
    }

    .fc-button .fc-icon {
        font-size: 1rem !important;
        color: #ffffff !important;
    }

.fc-button-primary {
    background: #2c3e50 !important;
    border-color: #2c3e50 !important;
}

    .fc-button-primary:hover {
        background: #34495e !important;
        border-color: #34495e !important;
    }

.fc-prev-button, .fc-next-button, .fc-today-button {
    background: #2c3e50 !important;
    border: 1px solid #2c3e50 !important;
    color: #ffffff !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    white-space: nowrap;
}

    .btn .spinner-border {
        vertical-align: middle;
        margin-right: 0.25rem;
    }

.btn-group .btn {
    transition: all 0.2s;
    margin-right: 0.25rem;
}

    .btn-group .btn:hover {
        transform: none;
    }

    .btn-group .btn:last-child {
        margin-right: 0;
    }

.btn:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:focus, .btn:active:focus, .form-control:focus, .form-select:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(37, 140, 251, 0.5);
}

.btn i {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.25rem;
    font-size: 0.9rem;
}

.btn-sm i {
    margin-right: 0.2rem;
    font-size: 0.8rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-warning {
    background-color: #ffca2c;
    border-color: #ffca2c;
    color: #343a40;
}

    .btn-warning:hover {
        background-color: #ffd54f;
        border-color: #ffd54f;
        color: #343a40;
    }

.d-grid .btn {
    width: 100%;
}

.bg-approved {
    background-color: #28a745;
    color: #212529;
}

.bg-pending {
    background-color: #ffca2c;
    color: #343a40;
}

.table {
    margin-bottom: 0;
    font-size: 1rem;
}

    .table th, .table td {
        padding: 0.5rem;
        vertical-align: middle;
    }

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.03);
}



.navbar {
    background-color: #2c3e50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar-nav .nav-link {
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

.navbar-nav .nav-item {
    margin-right: 0.5rem;
}

.indented-caption {
    padding-left: 17px;
}

.privacy-content {
    line-height: 1.8;
}

    .privacy-content h3 {
        color: #0d6efd;
        font-weight: 600;
    }

    .privacy-content p {
        color: #495057;
    }

    .privacy-content .lead {
        font-size: 1.1rem;
        color: #212529;
    }

    .privacy-content ul {
        padding-left: 0;
    }

    .privacy-content li {
        margin-bottom: 0.75rem;
        color: #495057;
    }

.spinner-border {
    vertical-align: middle;
}

/* FSPortal branding */
.FSPortal-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

/* Custom navbar toggler */
.navbar-toggler-custom {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler-icon-custom {
    filter: brightness(1.2);
}

/* Center text */
.text-center {
    text-align: center;
}

/* TimeOffRequest/Create styles */
.hours-feedback.valid {
    color: green;
}

.hours-feedback.invalid {
    color: red;
}

.hours-feedback.neutral {
    color: #6c757d;
}

.hidden {
    display: none;
}

.note-input {
    width: 180px;
}

.spinner-border:not(.hidden) {
    display: inline-block;
}

/* Alert positioning */
#ajaxFeedback {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    width: 90%;
    max-width: 600px;
    padding: 15px;
    min-height: 60px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #e6f4ea;
    color: #000;
    font-size: 1rem;
    line-height: 1.5;
    overflow: visible;
}

/* Ensure alert text is visible */
#ajaxFeedbackMessage {
    display: block;
    color: inherit;
}

.spinner-border.hidden {
    display: none;
}

/* Optional: Match TempData alerts to light green */
.alert-success {
    background-color: #e6f4ea;
    color: #000;
}

/* Form select styling */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    text-align: left;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Custom calendar styles (moved from Index.cshtml) */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

    .calendar-header a {
        text-decoration: none;
        padding: 5px 10px;
        background-color: #2c3e50;
        color: white;
        border-radius: 4px;
        font-size: 0.9rem;
        cursor: pointer;
    }

        .calendar-header a:hover,
        .calendar-header a:focus {
            background-color: #34495e;
            outline: none;
        }

.calendar {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    margin-bottom: 2rem;
}

    .calendar th,
    .calendar td {
        border: 1px solid #e9ecef;
        padding: 10px;
        text-align: center;
        vertical-align: top;
    }

    .calendar th {
        background-color: #f4f4f4;
    }

    .calendar td.empty {
        background-color: #f9f9f9;
    }

    .calendar td {
        height: 100px;
        width: 14.28%;
    }

    .calendar .day-number {
        font-weight: bold;
    }

    .calendar .events {
        margin-top: 5px;
    }

    .calendar .event {
        margin: 2px 0;
        padding: 3px 5px;
        border-radius: 3px;
        font-size: 0.8rem;
        line-height: 1.2;
        white-space: normal;
        word-wrap: break-word;
        cursor: pointer;
    }

/*.error-message {
    color: #dc3545;
    text-align: center;
    margin: 10px 0;
}*/

/*.loading {
    text-align: center;
    padding: 10px;
    display: none;
    color: #495057;
}*/

@media (max-width: 600px) {
    .calendar-container {
        max-width: 100%;
        padding: 0 10px;
    }

    .calendar td {
        height: 60px;
        font-size: 0.8em;
    }

    .calendar .event {
        font-size: 0.7em;
    }

    .calendar-header {
        flex-direction: column;
        align-items: flex-start;
    }

        .calendar-header h2 {
            margin: 10px 0;
        }
}

.calendar .event {
    margin: 2px 0;
    padding: 3px 5px;
    border-radius: 3px;
    font-size: 0.8rem;
    line-height: 1.2;
    white-space: normal;
    word-wrap: break-word;
    cursor: pointer;
    color: #ffffff;
}

    .calendar .event.approved {
        background-color: #28a745;
        color: #ffffff;
    }

    .calendar .event.pending {
        background-color: #ffc107;
        color: #ffffff;
    }
/* Custom calendar styles */
.error-message {
    color: #dc3545;
    text-align: center;
    margin: 10px 0;
    display: none; /* Default hidden */
}

    .error-message.visible {
        display: block; /* Show when visible class is added */
    }

.loading {
    text-align: center;
    padding: 10px;
    color: #495057;
    display: none; /* Default hidden */
}

    .loading.visible {
        display: block; /* Show when visible class is added */
    }

.qr-code-img {
    max-width: 200px;
}

.inline {
    display: inline;
}

.action-buttons a,
.action-buttons form {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.action-buttons {
    white-space: nowrap;
    min-width: 300px;
    text-align: left;
}

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

.table th, .table td {
    vertical-align: middle;
}

.remove-service-role.d-none {
    display: none !important;
}

.csr-results {
    z-index: 1000;
    max-height: 260px;
    overflow: auto;
}
.results-table .col-requested,
.results-table .col-updated,
.results-table .col-reference,
.results-table .col-status,
.results-table .col-actions {
    white-space: nowrap;
}

.results-table .col-requested,
.results-table .col-updated {
    min-width: 140px;
}

.results-table .col-reference {
    min-width: 140px;
}

.results-table .col-status {
    min-width: 90px;
}
.results-table .col-actions {
    min-width: 90px;
}