﻿/* Custom CSS for Login Page */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    color: #5c6167;
}

/* Logo styling */
.logo-container {
    /*position: absolute;
    top: 30px;
    left: 50px;
    z-index: 100;*/
    position: relative;
    top: 0;
    left: 0;
    padding-top: 20px;
    text-align: center;
}

.logo {
    font-weight: 700;
    font-size: 30px;
    letter-spacing: 1px;
}

    .logo span {
        color: #4645c4;
    }

/* Main container styling */
.login-container {
    background-color: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

/* Info side styling */
.info-side {
    background-color: #f9f9f9;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.info-content {
    max-width: 350px;
}

.vector-graphic {
    margin-bottom: 30px;
}

.info-side h2 {
    font-weight: 600;
    margin-bottom: 20px;
    color: #5c6167;
}

.info-side p {
    color: #666;
    margin-bottom: 30px;
    font-size: 15px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .feature-item i {
        color: #4645c4;
        font-size: 18px;
    }

/* Login form side styling */
.login-side {
    padding: 40px;
    /* display: flex; */
    flex-direction: column;
    justify-content: center;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
}

    .login-form h1 {
        font-weight: 700;
        margin-bottom: 30px;
        color: #5c6167;
        font-size: 32px;
    }

.userprofile-form {
    /*max-width: 400px;*/
    margin: 20px auto;
}

    .userprofile-form h1 {
        font-weight: 700;
        margin-bottom: 30px;
        color: #5c6167;
        font-size: 32px;
    }

.userprofile-container {
    background-color: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}
.form-label {
    font-weight: 500;
    color: #5c6167;
    font-size: 16px;
    margin-bottom: 8px;
}

.form-control {
    padding: 12px;
    border: 1px solid #DFDFDF;
    border-radius: 8px;
    font-size: 16px;
    height: auto;
}

    .form-control:focus {
        border-color: #4645c4;
        /*box-shadow: 0 0 0 3px rgba(188, 38, 73, 0.1);*/
        box-shadow: 0 0 0 3px rgba(35, 38, 119, 0.1);
    }

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    background: none;
    border: none;
    padding: 0;
}

.forgot-link {
    color: #4645c4;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0.25em;
    border: 1px solid #DFDFDF;
}

.form-check-label {
    padding-left: 4px;
}

.form-check-input:checked {
    background-color: #4645c4;
    border-color: #4645c4;
}

/* Button styling with all states */
.btn-primary {
    background-color: #4645c4;
    border-color: #4645c4;
    padding: 12px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 16px;
}

    .btn-primary:hover,
    .btn-primary:active,
    .btn-primary:focus,
    .btn-primary:focus-visible,
    .btn-primary.active {
        background-color: #4645c4 !important;
        border-color: #4645c4 !important;
        /*box-shadow: 0 0 0 0.25rem rgba(188, 38, 73, 0.5) !important;*/
        box-shadow: 0 0 0 3px rgba(35, 38, 119, 0.5) !important;
    }

    /* Override Bootstrap's default focus */
    .btn-check:focus + .btn-primary,
    .btn-primary:focus {
        background-color: #4645c4;
        border-color: #4645c4;
        box-shadow: 0 0 0 3px rgba(35, 38, 119, 0.5) !important;
    }

.signup-text {
    font-size: 16px;
    color: #5c6167;
}

.signup-link {
    color: #4645c4;
    text-decoration: none;
    font-weight: 600;
}

    .signup-link:hover {
        text-decoration: underline;
    }

.btn-danger {
    
    padding: 12px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 16px;
}
/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(35, 38, 119, 0.5);
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(35, 38, 119, 0.5);
    }

/* Responsive adjustments */
@media (max-width: 991px) {
    .logo-container {
        position: relative;
        top: 0;
        left: 0;
        padding: 20px;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .login-container {
        margin: 0;
        border-radius: 0;
    }

    .info-side {
        padding: 30px 20px;
        order: 1; /* Info side will appear below login on mobile */
    }

    .login-side {
        padding: 30px 20px;
        order: 2; /* Login side*/
    }
}


/* Toast Container */
.custom-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Base Toast Styles */
.custom-toast {
    min-width: 250px;
    max-width: 350px;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    display: block;
}

/* Toast Variants */
.toast-success {
    background-color: #28a745;
}

.toast-error, .toast-failure {
    background-color: #dc3545;
}

.toast-info {
    background-color: #17a2b8;
}

/* Fade Out Effect */
.custom-toast.hide {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.custom-toast-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    gap: 10px; /* Ensures spacing between message and button */
}

.toast-message {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Ensures long text does not break layout */
}

.btn-close {
    background: none;
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
    margin-left: auto; /* Pushes button to the end */
    padding: 5px; /* Ensures proper clickable area */
    display: flex;
    align-items: center;
}


.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Full-screen overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensures modal is above everything */
}

/* Modal box */
.custom-modal {
    background: #f5f5f5;
    width: 800px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1051;
    /* Makes the modal scrollable */
    max-height: 80vh; /* Limits height to 80% of viewport */
    overflow-y: auto; /* Enables vertical scrolling when content exceeds max-height */
}

/* Modal header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
}

/* Close button */
.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Modal body */
.modal-body {
    margin: 10px 0;
}

/* Modal footer */
.modal-footer {
    text-align: right;
}

.day-container {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between rows */
}

.day-row {
    display: flex;
    justify-content: space-between;
    gap: 10px; /* Space between days */
    width: 100%; /* Ensures row spans full modal width */
}

.day-section {
    width: calc((800px - 40px) / 3); /* Ensures 3 equal sections within 800px */
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    box-sizing: border-box; /* Prevents overflow due to padding */
}

.quickgrid tbody tr:has(td:empty) {
    display: none;
}
