@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.2/font/bootstrap-icons.min.css");

/* common style */
.delete-btn {
    color: #f00;
    font-size: 13px;
    font-weight: 500;
    padding: 0;
    margin: 0 0;
    border: 0px;
    display: block;
    text-decoration: underline;
    background: transparent;
}
table {
    border: 1px solid #e3e6f0;
}
.table thead th {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    background: #4c4c4f;
}
.table>tbody tr td {
    font-size: 14px;
}
.cmt-change-log-table.data-table thead th:last-child {
    width: auto !important;
}
.form-section-title {
    width: calc(100% - 30px) !important;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 2px;
    text-transform: uppercase;
    padding: 12px 12px 11px !important;
    margin: 10px 12px 15px !important;
    background-color: #f18b3e;
}
.form-group label {
    color: #6f6f6f;
    font-size: 0.85rem;
    margin-bottom: 0;
}
.form-group .form-control {
    height: auto !important;
    min-height: 40px;
    font-size: 0.85rem;
    border-radius: 2px;
    padding: 5px 8px;
}
input[type="number"] {
    text-align: right;
}

/* Stylish Calendar and Time Fields */
input[type="date"], 
input[type="time"], 
input[type="datetime-local"] {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #495057;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-family: inherit;
    outline: none;
}

input[type="date"]:hover, 
input[type="time"]:hover, 
input[type="datetime-local"]:hover {
    border-color: #80bdff;
    background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 100%);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
}

input[type="date"]:focus, 
input[type="time"]:focus, 
input[type="datetime-local"]:focus {
    border-color: #007bff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1), 0 4px 12px rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
}

/* Calendar icon styling */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23007bff" viewBox="0 0 16 16"><path 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"/></svg>') no-repeat center;
    background-size: 16px 16px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

/* Time icon styling */
input[type="time"]::-webkit-calendar-picker-indicator {
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23007bff" viewBox="0 0 16 16"><path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/><path d="M7.5 3a.5.5 0 0 1 .5.5v4.21l2.5 1.5a.5.5 0 0 1-.5.87L7 8.25V3.5a.5.5 0 0 1 .5-.5z"/></svg>') no-repeat center;
    background-size: 16px 16px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Firefox date/time field styling */
input[type="date"]::-moz-focus-inner,
input[type="time"]::-moz-focus-inner,
input[type="datetime-local"]::-moz-focus-inner {
    border: 0;
}

/* Custom styling for invalid dates */
input[type="date"]:invalid,
input[type="time"]:invalid,
input[type="datetime-local"]:invalid {
    border-color: #dc3545;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

/* Group styling for date/time fields in rows */
.date-time-group {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.date-time-group .form-group {
    margin-bottom: 0;
}

/* Date range styling */
.date-range-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.date-range-separator {
    color: #6c757d;
    font-weight: 500;
    margin: 0 4px;
    padding-top: 2px;
}

/* Form group animations for focused fields */
.field-focused label {
    color: #007bff;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

.field-focused {
    position: relative;
}

.field-focused::before {
    content: '';
    position: absolute;
    left: -3px;
    right: -3px;
    top: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.05));
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    animation: fieldGlow 0.3s ease-in-out forwards;
}

@keyframes fieldGlow {
    to {
        opacity: 1;
    }
}

/* Enhanced date range containers */
.travel-period-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 1px solid #e3e8f0;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

.travel-period-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 10px 10px 0 0;
}

.travel-period-section .form-section-title {
    background: linear-gradient(135deg, #007bff, #0056b3);
    margin: -20px -20px 15px -20px !important;
    width: calc(100% + 40px) !important;
    border-radius: 10px 10px 0 0;
}

/* Flight section enhancements */
.flight-section {
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
    border: 1px solid #f0e6d6;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    position: relative;
}

.flight-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f18b3e, #e67e22);
    border-radius: 10px 10px 0 0;
}

/* Date and time field containers with icons */
.datetime-field-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.datetime-field-container .field-icon {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .date-time-group,
    .date-range-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .date-range-separator {
        display: none;
    }
    
    input[type="date"], 
    input[type="time"], 
    input[type="datetime-local"] {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
    
    .travel-period-section,
    .flight-section {
        margin: 10px -5px;
        padding: 15px;
    }
    
    .travel-period-section .form-section-title {
        margin: -15px -15px 10px -15px !important;
        width: calc(100% + 30px) !important;
    }
}

/* ===== CUSTOM BEAUTIFUL DATE PICKER STYLES ===== */

/* Date Input Wrapper */
.date-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.date-input-wrapper .custom-date-input {
    cursor: pointer !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    padding-right: 40px !important;
}

.date-input-wrapper .date-picker-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #007bff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.date-input-wrapper:hover .date-picker-icon {
    color: #0056b3;
    transform: translateY(-50%) scale(1.1);
}

/* Custom Date Picker Popup */
.custom-date-picker-popup {
    position: absolute;
    z-index: 9999;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 320px;
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.custom-date-picker-popup.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Date Picker Header */
.date-picker-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.date-picker-prev,
.date-picker-next {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.date-picker-prev:hover,
.date-picker-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.date-picker-title {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    flex: 1;
}

.date-picker-month,
.date-picker-year {
    display: inline-block;
    transition: all 0.3s ease;
}

/* Date Picker Body */
.date-picker-body {
    padding: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.date-picker-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.date-picker-weekdays .weekday {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px;
}

.date-picker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.date-picker-days .day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    background: white;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.date-picker-days .day:hover:not(.other-month) {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #007bff;
    transform: scale(1.05);
    z-index: 1;
}

.date-picker-days .day.today {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
    color: #155724;
    font-weight: 600;
}

.date-picker-days .day.selected {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-color: #004085;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    font-weight: 600;
    transform: scale(1.05);
}

.date-picker-days .day.other-month {
    color: #ced4da;
    background: #f8f9fa;
    cursor: default;
}

.date-picker-days .day.other-month:hover {
    background: #f8f9fa;
    border-color: transparent;
    transform: none;
}

/* Date Picker Footer */
.date-picker-footer {
    padding: 12px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.date-picker-today,
.date-picker-clear {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-picker-today {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
}

.date-picker-today:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.date-picker-clear {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.date-picker-clear:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Animations */
@keyframes datePickerFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .custom-date-picker-popup {
        width: 280px;
        font-size: 0.9rem;
    }
    
    .date-picker-prev,
    .date-picker-next {
        width: 28px;
        height: 28px;
    }
    
    .date-picker-title {
        font-size: 1rem;
    }
    
    .date-picker-days .day {
        font-size: 0.85rem;
    }
}
textarea.form-control {
    height: auto !important;
}
.alert-dismissible .btn-close {
    padding: 14px !important;
}
.file-uploader .image-uploader {
    width: 98px;
    height: 98px;
    display: block;
    cursor: pointer;
    position: relative;
    border-radius: 2px;
    background: #f4f4f4;
    border: 1px solid #dee2e6;
}
.file-uploader .image-uploader .upload-text i {
    font-size: 20px;
    top: 0;
    right: 4px;
    position: absolute;
    display: none;
}
.file-uploader .image-uploader .uploaded {padding: 0;}
.file-uploader .image-uploader .uploaded .uploaded-image {
    width: 98px;
    height: 98px;
    display: block;
    margin: 0px;
}
.image-uploader.has-files .upload-text:hover i {
    display: block;
}
.uploaded-file {
    width: 98px;
    height: 98px;
    display: block;
    position: relative;
    background: #f4f4f4;
    border: 1px solid #dee2e6;
}
.uploaded-file img {
    width: 100%;
    height: 100%;
    display: block;
}
.delete-image {
    display: none;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0.2rem;
    padding: 0;
    border-radius: 50%;
    background-color: transparent;
    -webkit-appearance: none;
    border: 0px;
}
.delete-image i {
    color: #f00;
    font-size: 1.4rem;
}
.uploaded-file:hover .delete-image {
    display: block;
}
.tbl-thumbnail {
    width: 100%;
}
.table td, .table th {
    vertical-align: middle;
}
a, a:hover {
    text-decoration: none;
}
.form-group {
    margin-bottom: 15px;
}
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.export-excel-btn {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}
.export-excel-btn:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}
.export-excel-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
/* layout */
#accordionSidebar {
    background: #171717;
}

/* alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}
.alert strong {
    display: block;
    margin-bottom: 15px;
}
.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}
.alert-success {
    font-size: 0.85rem;
    padding: 10px 12px !important; 
}
.woocommerce-message {
    color: #f18b3e;
    font-size: 0.85rem;
    font-weight: 400;
    width: calc(100% - 20px);
    margin: 12px 0 15px 10px;
    padding: 8px 10px;
    border-radius: 4px;
    background: #fff4e0;
    border: 1px solid #f18b3e;
}

/* institute form */
.timetable-data div {
    display: inline-block;
}
.timetable-form div {
    display: inline-block;
}

/* student account */
.woocommerce-account .page-content .woocommerce-MyAccount-navigation {
    width: 20%;
    margin-top: 20px;
}
.page-content .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.woocommerce-account .page-content .woocommerce-MyAccount-content {
    width: 80%;
    margin-top: 20px;
}

/* unit template */
.unit-play-list {
    padding: 15px 0px;
}
.unit-play-list .card-wrap .card-image {
    height: 100%;
    background-position: center;
}
.unit-play-list .card-wrap {
    width: calc(100% - 30px);
    float: none;
    margin: 0 auto 15px;
    display: block;
}
.unit-play-list .card-wrap .card-info .card-title {
    height: 55px;
}
.unit-play-list .card-wrap.active-unit {
    opacity: 0.5;
    pointer-events: none;
}

/* manage payment */
.paymet-modal .modal-content {
    padding: 30px 10px 15px 30px;
}
.paymet-modal .student-data ul,
.paymet-modal .payment-data ul {
    list-style: none;
    margin-bottom: 0px;
}
.paymet-modal h5 {
    font-size: 15px;
    font-weight: 700;
}
.paymet-modal table th {
    font-size: 14px;
    font-weight: 500;
}
.paymet-modal table {
    margin-bottom: 30px;
}
.paymet-modal .btn-close {
    top: 0px;
    right: 0px;
    z-index: 55;
    border-radius: 100px;
    position: absolute;
}

/* primary settings */
.font-weight-bold {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    margin-bottom: 0 !important;
}
.woocommerce-EditAccountForm {
    width: 100%;
    max-width: 700px;
}
.woocommerce-account .page-content .woocommerce form .form-row input.input-text {
    height: auto !important;
    min-height: 40px;
    font-size: 0.85rem !important;
    border-radius: 2px !important;
    padding: 5px 8px !important;
    border: 1px solid #eaeaea !important;
}
.woocommerce-EditAccountForm label {
    color: #6f6f6f;
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Birthday Countdown Styling */
.birthday-countdown {
    margin: 3px 0;
    font-size: 0.75rem;
    font-weight: 500;
}

.birthday-today {
    color: #28a745;
    font-weight: 700;
    animation: pulse 2s infinite;
}

.birthday-tomorrow {
    color: #fd7e14;
    font-weight: 600;
}

.birthday-days {
    color: #6c757d;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.upcoming-bdays h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #495057;
}