/* Preloader */
#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top: 5px solid #110f0f;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
footer {
    color: #fff;
    text-align: center;
    padding: 15px;
    flex-shrink: 0;
    margin-top: auto;
}

/* Base Modal Styles */
.modal-dialog {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    height: 100vh;
}

.modal-content {
    border-radius: 1.5rem;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    height: 100%;
}

/* Sidebar */
.sidebar {
    width: 35%;
    max-width: 380px;
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

/* Utility Classes */
.bg-gradient-dark {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
}

.shadow-xl {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.rounded-xl {
    border-radius: 1rem !important;
}

.transition-all {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hover-pop:hover {
    transform: scale(1.05);
}

.hover-scale:hover {
    transform: scale(1.1);
}

.hover-shadow:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.hover-bg-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
}

.hover-text-white:hover {
    color: #fff !important;
}

.logo-wrapper {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-glow {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.status-badge {
    font-size: 0.8rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.circle-decor {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.credential-group {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.btn-close-dark {
    filter: invert(20%);
}

.input-group .form-control {
    border: 1px solid #ced4da;
    height: calc(1.5em + 0.5rem + 2px);
    display: flex;
    align-items: center;
}

.accordion-button {
    color: #212529 !important;
    font-size: 0.9rem;
}

.accordion-button:not(.collapsed) {
    background-color: #f8f9fa !important;
    color: #007bff !important;
}

/* Mobile Responsiveness */
@media (max-width: 767.98px) {
    .modal-dialog {
        margin: 0;
        width: 100vw;
        max-width: none;
        height: 100vh;
    }
    .modal-content {
        border-radius: 0;
        height: 100%;
        overflow-y: auto;
        flex-direction: column !important;
    }
    .sidebar {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        border-radius: 0;
        padding-bottom: 1rem;
    }
    .flex-md-row {
        flex-direction: column !important;
    }
    .flex-grow-1 {
        width: 100%;
    }
    .card {
        margin-bottom: 1rem;
    }
    .input-group {
        flex-wrap: nowrap;
    }
    .form-control {
        font-size: 0.875rem;
    }
    .btn-sm {
        font-size: 0.75rem;
    }
    .collapse {
        display: none;
    }
    .collapse.show {
        display: block;
    }
    .d-md-block {
        display: none !important;
    }
    .d-md-none {
        display: block !important;
    }
}

/* Extra Small Devices */
@media (max-width: 575.98px) {
    .logo-wrapper img {
        width: 80px;
        height: 80px;
    }
    .btn {
        padding: 0.5rem 1rem;
    }
    .card-body {
        padding: 1rem;
    }
}

/* Desktop Responsiveness */
@media (min-width: 768px) {
    .modal-dialog {
        max-width: 900px;
        height: auto;
    }
    .modal-content {
        height: auto;
    }
    .sidebar {
        width: 35%;
        max-width: 380px;
    }
    .flex-grow-1 {
        width: 65%;
    }
}


