﻿html {
    font-size: 14px;
}

@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;
}

.btn-submit {
    color: #fff;
    background-color: #4c4cff;
    border-color: #4c4cff;
}

    .btn-submit:hover {
        color: #fff;
        background-image: linear-gradient(rgb(0 0 0/10%) 0 0);
    }

/* Ensure the label text has space for the asterisk */
.required::after {
    content: "*";
    color: red; /* Red color for the asterisk */
    margin-left: 4px; /* Space between the label text and the asterisk */
}

.error {
    color: red;
}

.captcha-image {
    min-width: 75%; /* Adjust as needed */
    min-height: 75%; /* Adjust as needed */
    max-width: 75%; /* Adjust as needed */
    max-height: 75%; /* Adjust as needed */
    object-fit: contain; /* Ensures the image covers the area */
    background-color: #e7e6e6
}

.prediction-text {
    font-size: 1.25rem; /* Increase font size */
    font-weight: bold; /* Make text bold */
    color: #333; /* Set a dark color for contrast */
    background-color: #f8f9fa; /* Light background for readability */
    padding: 10px 15px; /* Add padding around the text */
    border-radius: 5px; /* Rounded corners */
    border: 1px solid #dee2e6; /* Border for definition */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}


html {
    position: relative;
    min-height: 100%;
}

.body {
    padding-top: 3.6em;
    /*margin-bottom: 60px;*/
}

nav {

    background: white;
}

.content-wrapper {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    text-align: left;
}

[v-cloak] {
    display: none;
}

.input-container {
    margin:auto;
}

.audio-container {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .audio-container audio {
        width: 100%;
        margin-bottom: 10px;
    }

.audio-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.captcha-container {
    position: relative;
    display: inline-block;
}

.captcha-image-grid {
    display: block;
}

.captcha-image.with-grid {
    max-width: 100%; 
    height: auto;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.grid-overlay div {
    border: 1px solid rgba(255, 0, 0, 0.7);
    box-sizing: border-box;
}

.multiline-textbox {
    height: auto;
    min-height: 100px;
    white-space: pre-wrap;
    word-wrap: break-word;
}


@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(100px, 100px) rotate(30deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.form-control:focus {
    border-color: #4285f4;
    box-shadow: 0 0 0 0.25rem rgba(66, 133, 244, 0.25);
}

.btn-primary {
    background-color: #4285f4;
    border-color: #4285f4;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background-color: #3367d6;
        border-color: #3367d6;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header-login {
    background: linear-gradient(to right, #4285f4, #34a853);
    border-bottom: none;
    position: relative;
}

.card-header-login::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(to right, #ea4335, #fbbc05);
    }

.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
}

.form-floating > .form-control:focus ~ label {
    color: #4285f4;
}

.form-check-input:checked {
    background-color: #4285f4;
    border-color: #4285f4;
}

.logo-container {
    position: relative;
}

    .logo-container::after {
        content: "";
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 3px;
        background: linear-gradient(to right, #ea4335, #fbbc05, #34a853, #4285f4);
        border-radius: 3px;
    }

.balance-widget {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    min-width: 200px;
}

.sidebar-menu {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    z-index: 1000;
}

.sidebar-header {
    padding: 1rem;
    background: #007bff;
    color: white;
    text-align: center;
}

.sidebar-nav {
    padding: 1rem 0;
}

    .sidebar-nav .nav-link {
        padding: 0.75rem 1.5rem;
        color: #495057;
        display: flex;
        align-items: center;
    }

        .sidebar-nav .nav-link:hover,
        .sidebar-nav .nav-link.active {
            background-color: #e9ecef;
            color: #007bff;
        }

        .sidebar-nav .nav-link i {
            margin-right: 0.5rem;
            width: 20px;
        }

/* Responsive adjustments */
@media (max-width: 768px) {
    .balance-widget {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 1rem;
    }

    .sidebar-menu {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

        .sidebar-menu.active {
            transform: translateX(0);
        }

        .required::after {
        content: " *";
        color: red;
    }
    
    .card-header h6 {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .was-validated .form-control:invalid,
    .was-validated .form-select:invalid {
        border-color: #dc3545;
    }
    
    .was-validated .form-control:valid,
    .was-validated .form-select:valid {
        border-color: #198754;
    }
    
    /* Quill Editor Styling */
    .ql-toolbar {
        background-color: #f8f9fa;
        border-top-left-radius: 0.25rem;
        border-top-right-radius: 0.25rem;
    }
    
    .ql-container {
        background-color: white;
        border-bottom-left-radius: 0.25rem;
        border-bottom-right-radius: 0.25rem;
        font-size: 1rem;
    }
    
    .ql-editor {
        min-height: 300px;
    }
    
    .ql-editor p {
        margin-bottom: 1rem;
    }

    cursor: pointer;
    transition: all 0.2s;
    }

    .media-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .media-item.selected {
        border: 2px solid #0d6efd;
    }

    .thumbnail-upload-container .btn-sm {
        font-size: 0.875rem;
    }
/* View Blog Post*/
.blog-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
}

.blog-title {
    color: #2c3e50;
    font-weight: 600;
}

.blog-meta {
    font-size: 0.9rem;
}

.blog-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

    .blog-content h1, .blog-content h2, .blog-content h3,
    .blog-content h4, .blog-content h5, .blog-content h6 {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }

    .blog-content p {
        margin-bottom: 1rem;
    }

    .blog-content img {
        max-width: 100%;
        height: auto;
        margin: 1rem 0;
    }

.related-posts .card {
    transition: transform 0.2s;
}

    .related-posts .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

.select2-container .select2-selection--single {
    height: calc(1.5em + 0.75rem + 2px) !important;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #212529 !important;
    background-color: #fff !important;
    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") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

    .select2-container .select2-selection--single .select2-selection__rendered {
        padding-left: 0 !important;
        padding-right: 0 !important;
        height: auto !important;
        margin-top: 0 !important;
        color: #212529 !important;
    }

    .select2-container .select2-selection--single .select2-selection__arrow {
        display: none !important;
    }

/* Focus state to match Bootstrap */
.select2-container--default .select2-selection--single:focus {
    border-color: #86b7fe !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #86b7fe !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* Dropdown styling to match Bootstrap */
.select2-dropdown {
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.select2-container--default .select2-results__option {
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    color: #212529 !important;
}

.select2-container--default .select2-results__option--highlighted {
    background-color: #0d6efd !important;
    color: #fff !important;
}

/* Placeholder styling */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6c757d !important;
}

/* Ensure consistent width */
.select2-container {
    width: 100% !important;
}




