/* Global Styles */
body {
    background-color: var(--bs-dark);
    color: var(--bs-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.logo {
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.container {
    max-width: 1140px;
}

.card {
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--bs-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

.card-header {
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.25rem;
}

.card-header h3 {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

/* Money input formatting */
.money-text {
    font-style: italic;
    margin-top: 5px;
    opacity: 0.8;
    font-size: 0.9rem;
    color: var(--bs-info);
}

/* Loading overlay */
#loadingOverlay {
    z-index: 9999;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

#loadingOverlay.show {
    opacity: 1;
}

.logo-spinner {
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form validation styles */
.was-validated .form-control:invalid:focus,
.form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-danger-rgb), 0.25);
}

/* Form controls */
.form-control, .form-select {
    padding: 0.6rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--bs-light);
}

.form-control:focus, 
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
    color: var(--bs-light);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Input groups */
.input-group-text {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--bs-light);
}

/* Buttons */
.btn-primary {
    background-color: var(--bs-primary);
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--bs-primary);
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--bs-primary-rgb), 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Footer styling */
footer {
    opacity: 0.7;
    font-size: 0.9rem;
}

footer small {
    transition: opacity 0.3s ease;
}

footer small:hover {
    opacity: 1;
}

/* Modal styling */
.modal-content {
    background-color: var(--bs-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-radius: 18px;
    overflow: hidden;
}

.modal-header, .modal-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Success modal styling */
.success-icon-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.success-icon-circle {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    width: 120px;
    height: 120px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    box-shadow: 0 0 30px rgba(106, 17, 203, 0.5);
}

.success-icon-circle i {
    color: white;
    font-size: 60px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(106, 17, 203, 0.7);
        transform: scale(0.95);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(106, 17, 203, 0);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(106, 17, 203, 0);
        transform: scale(0.95);
    }
}

#successModal .modal-body {
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
}

#successModal .btn-primary {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border: none;
    transition: all 0.3s ease;
}

#successModal .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(106, 17, 203, 0.4);
}

#successModal .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

#successModal .btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .card-header h3 {
        font-size: 1.2rem;
    }
    
    .btn-primary {
        width: 100%;
    }
}
