body {
    background: linear-gradient(135deg, #4062f8 0%, #4346ff 100%);
    min-height: 100vh;
}

body.body-mtgo {
    background: linear-gradient(135deg, #4062f8 0%, #fff7df 25%, #8dffa6 50%, #fb9090 75%, #525252 100%);
}

body.body-saham {
    background: linear-gradient(135deg, #fffcbc 0%, #cbffd6 50%, #ffd8d8 75%);
}

.main-content {
    min-height: 100vh;
    background: transparent;
    /* Remove duplicate gradient since body now has it */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Footer styling to work with the gradient background */
footer {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

footer .copyright {
    color: rgba(255, 255, 255, 0.8);
}

footer .copyright a {
    color: rgba(255, 255, 255, 1);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

footer .copyright a:hover {
    color: #fff;
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    border: none;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    overflow: hidden;
    position: relative;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
}

.login-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
}

.input-wrapper {
    position: relative;
    margin-bottom: 0;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 10;
    font-size: 1.1rem;
}

.custom-input {
    padding-left: 45px;
    padding-right: 50px;
    height: 50px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    font-size: 16px;
}

.custom-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: #fff;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #6c757d;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    background: #e9ecef;
    color: #495057;
}

.custom-btn {
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.custom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

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

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.forgot-link {
    color: #667eea;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: #764ba2;
    text-decoration: underline !important;
}

.form-label {
    color: #495057;
    margin-bottom: 8px;
}

/* Date picker styles */
.datepicker {
    font-size: 1.25rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .login-card {
        margin: 10px;
        border-radius: 15px;
    }

    .login-icon {
        font-size: 3rem;
    }

    .card-body {
        padding: 2rem 1.5rem !important;
    }
}

/* Loading animation for button */
.custom-btn.loading {
    pointer-events: none;
}

.custom-btn.loading span {
    opacity: 0;
}

.custom-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Home */
.welcome-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
}

/* Barang */
.card {
    border: none;
    border-radius: 10px;
}

.table th {
    border-top: none;
    font-weight: 600;
}

td.cell-right-align {
    text-align: right !important;
}

/* Toast Container */
#toastContainer {
    z-index: 1055;
}

/* Typeahead dropdown styling */
.typeahead .dropdown-menu {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.typeahead .dropdown-item {
    color: #212529 !important;
    background-color: transparent;
    padding: 0.5rem 1rem;
    border: none;
    transition: all 0.3s ease;
}

.typeahead .dropdown-item:hover,
.typeahead .dropdown-item:focus {
    color: #fff !important;
    background-color: #899ae6;
}

.typeahead .dropdown-item.active {
    color: #fff !important;
    background-color: #899ae6;
}

div.tt-suggestion {
    background-color: white;
    color: black;
    padding: 3px 10px;
}

.tt-suggestion.tt-cursor {
    background-color: #899ae6 !important;
}

div.tt-menu {
    border-width: 0px 4px 4px;
    border-style: none solid solid;
    border-color: currentcolor lightblue lightblue;
}

/* Loading spinner styles */
.loading-spinner {
    width: 3rem;
    height: 3rem;
}

/* Chart */
div.chart-modal {
    width: 100%;
    height: 500px;
}

div.chart-main {
    width: 100%;
    height: 700px;
}

/* Print nota */
.nota-body {
    padding: 10mm;
    width: 210mm;
}

.white-bg {
    background: white !important;
}

.w-16p {
    width: 16% !important;
}

.w-18p {
    width: 18% !important;
}

.w-50p {
    width: 50% !important;
}

table.no-h-border tr {
    border-bottom: none !important;
    border-top: none !important;
}

table.no-h-border td {
    border-bottom: none !important;
    border-top: none !important;
}

tbody.no-border td {
    border-style: none !important;
}

.table-nota> :not(caption)>*>* {
    padding-top: 0.075rem !important;
    padding-bottom: 0.075rem !important;
}

td.empty-cell {
    height: 1.6rem;
}

/* Loading Popup Styles */
.loading-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.loading-popup-content {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    border: 1px solid rgba(0, 0, 0, 0.125);
    min-width: 320px;
    max-width: 400px;
}

.loading-popup-spinner {
    width: 3rem;
    height: 3rem;
}

.loading-popup-progress {
    height: 4px;
}

.loading-popup-progress-bar {
    width: 100%;
}