/* --- Base Styles --- */
body {
    background-color: #0067ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: 'Segoe UI', Arial, sans-serif;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    color: white;
}

.page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 400px;
    flex-grow: 1;
    box-sizing: border-box;
    padding: 20px 0;
}

form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* --- Elements --- */
.logo {
    max-width: 80px;
    height: auto;
    margin-bottom: 20px;

    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
}

.large-input {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.user-info {
    width: auto;
    text-align: right;
    margin-left: auto;
}

.balance {
    width: auto;
    text-align: left;
    margin-right: auto;
    margin-top: 20px;
}

.balance h1 {
    margin-top: 5px;
}

.input-transfer-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}

/* The $ symbol */
.currency-prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
    font-weight: bold;
    pointer-events: none;
}

.toggle-container {
    display: flex;
    width: 100%;
    max-width: 400px;
    background-color: white;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    box-sizing: border-box;
}

.toggle-radio {
    display: none;
}

.toggle-label {
    flex: 1;
    padding: 12px 0;
    font-size: 0.85rem;
    font-weight: bold;
    color: #0067ff;
    text-align: center;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    user-select: none;
}

.toggle-label:hover {
    background-color: #f8f8f8;
}

.toggle-radio:checked + .toggle-label {
    background-color: #f59c24;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* --- THE BASE BUTTON CLASS ---
*/
.btn {
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    transition: transform 0.1s ease, background-color 0.2s ease;
    user-select: none;
    display: block;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

/* --- BUTTON VARIANTS --- */
.btn-primary {
    background-color: #f59c24;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: white;
    color: #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-big {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px;
}

.logout-btn {
    height: 35px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.back-btn {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.back-btn-toolbar {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.back-btn:hover {
    opacity: 0.8;
}

/* --- TOOLBAR --- */
.toolbar {
    width: 100%;
    background-color: #f59c24;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    color: white;
}

.toolbar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- POPUP ---
   Popup
*/
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* The actual white box */
.popup-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 75%;
    max-width: 350px;
    text-align: center;
    color: #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.error-icon {
    background-color: #ff4444;
    color: white;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 15px;
}

.popup-content h3 {
    margin-bottom: 10px;
    color: #0067ff;
}

.popup-content p {
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* --- MISC --- */
.m-0 {
    margin: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-35 {
    margin-bottom: 35px;
}

.mt-0 {
    margin-top: 0;
}

.pl-30 {
    padding-left: 30px;
}

.push-right {
    margin-left: auto;
}

.push-left {
    margin-right: auto;
}

.push-bottom {
    margin-top: auto;
    margin-bottom: 20px;
}

/* --- ALERTS ---
   ALERT STYLING
*/
..alert-wrapper {
     width: 100%;
     max-width: 400px;
     margin: 0 auto 20px auto;
     padding: 0 20px;
     box-sizing: border-box;
 }

 .custom-alert {
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 14px 18px;
     border-radius: 16px; /* High-end rounded look */
     border: 1px solid;
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
     animation: slideDown 0.4s ease-out;
 }

 .alert-content {
     display: flex;
     flex-direction: column;
     gap: 2px;
 }

 .alert-title {
     font-size: 15px;
     font-weight: 800;
     text-transform: uppercase;
     letter-spacing: 0.5px;
 }

 .alert-message {
     font-size: 14px;
     opacity: 0.9;
     line-height: 1.3;
 }

 /* Color Themes */
 .alert-success { background: #ecfdf5; border-color: #10b981; color: #064e3b; }
 .alert-info { background: #eff6ff; border-color: #3b82f6; color: #1e3a8a; }
 .alert-danger { background: #fef2f2; border-color: #ef4444; color: #7f1d1d; }

 .close-alert {
     background: none;
     border: none;
     font-size: 24px;
     cursor: pointer;
     color: inherit;
     padding: 0 0 0 12px;
     line-height: 1;
 }

 @keyframes slideDown {
     from { transform: translateY(-10px); opacity: 0; }
     to { transform: translateY(0); opacity: 1; }
 }

 .color-light {
    color: #FFFFFF;
 }
