/* ===== HUTANK - Modern Liquid Glass CSS ===== */

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --accent: #f093fb;
    --success: #48bb78;
    --warning: #f6ad55;
    --danger: #fc8181;
    --info: #63b3ed;

    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-bg-solid: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);

    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --text-white: #ffffff;

    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-cute: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    --gradient-warning: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    --gradient-danger: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);

    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: var(--font-family);
    background: var(--gradient-bg);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body {
    background-attachment: fixed;
}

.hidden {
    display: none !important;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--gradient-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

.loading-logo i {
    font-size: 48px;
    color: white;
}

.loading-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.loading-content p {
    font-size: 14px;
    opacity: 0.8;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    margin: 24px auto 0;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ===== GLASS CARDS ===== */
.glass-card {
    background: var(--glass-bg-solid);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 20px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2);
}

/* ===== AUTH SCREEN ===== */
.auth-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.auth-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: -30px;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 10%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.auth-container {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-header {
    text-align: center;
    color: white;
    margin-bottom: 32px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: pulse 2s infinite;
}

.auth-logo i {
    font-size: 40px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.auth-header p {
    font-size: 14px;
    opacity: 0.9;
}

.auth-form {
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.5s ease;
}

.auth-form h2 {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--primary);
    width: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    background: white;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-success {
    background: var(--gradient-success);
    color: white;
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
}

.btn-google {
    background: white;
    color: var(--text-primary);
    border: 2px solid #e2e8f0;
}

.btn-google:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.btn-google img {
    width: 20px;
    height: 20px;
}

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-light);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    padding: 0 16px;
}

.auth-switch {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 20px;
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* ===== APP SCREEN ===== */
.app-screen {
    min-height: 100vh;
    min-height: 100dvh;
    /* Dynamic viewport height for mobile */
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.app-header {
    background: var(--gradient-primary);
    padding: 20px;
    padding-top: max(20px, env(safe-area-inset-top));
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-info {
    color: white;
}

.greeting {
    font-size: 12px;
    opacity: 0.9;
}

.header-info h2 {
    font-size: 18px;
    font-weight: 600;
}

.header-right {
    display: flex;
    gap: 8px;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== MAIN CONTENT ===== */
.app-main {
    flex: 1;
    padding: 20px;
    padding-top: 100px;
    /* Space for fixed header */
    padding-bottom: 100px;
}

.view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== QUOTE CARD ===== */
.quote-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    margin-bottom: 24px;
    text-align: center;
    padding: 24px;
    overflow: hidden;
}

.quote-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }
}

.quote-icon {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.quote-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.quote-author {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 12px;
}

.btn-refresh-quote {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: none;
    color: var(--primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-refresh-quote:hover {
    background: var(--primary);
    color: white;
    transform: rotate(180deg);
}

.animate-float {
    animation: floatBounce 3s ease-in-out infinite;
}

@keyframes floatBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* ===== SECTION TITLE ===== */
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title i {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== SUMMARY CARDS ===== */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.summary-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-success {
    background: var(--gradient-success);
}

.bg-gradient-warning {
    background: var(--gradient-warning);
}

.bg-gradient-danger {
    background: var(--gradient-danger);
}

.summary-info {
    display: flex;
    flex-direction: column;
}

.summary-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-label {
    font-size: 11px;
    color: var(--text-light);
}

/* ===== DEBT LIST ===== */
.debt-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.debt-card {
    background: var(--glass-bg-solid);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.debt-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 30px rgba(31, 38, 135, 0.2);
}

.debt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.debt-app-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.debt-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.debt-status.active {
    background: rgba(246, 173, 85, 0.2);
    color: #c05621;
}

.debt-status.completed {
    background: rgba(72, 187, 120, 0.2);
    color: #276749;
}

.debt-status.danger {
    background: rgba(252, 129, 129, 0.2);
    color: #c53030;
}

.debt-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.debt-amount {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.debt-due {
    text-align: right;
}

.debt-due-label {
    font-size: 11px;
    color: var(--text-light);
}

.debt-due-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.debt-progress {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.debt-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.debt-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 6px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 14px;
}

/* ===== VIEW HEADER ===== */
.view-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: white;
}

.view-header h2 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== FILTER TABS ===== */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.filter-tab {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-tab.active {
    background: white;
    color: var(--primary);
    font-weight: 600;
}

.filter-tab:hover {
    background: white;
    color: var(--primary);
}

/* ===== LOADING & SKELETON ===== */
.btn-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.skeleton {
    background: #e2e8f0;
    background: linear-gradient(90deg, #e2e8f0 25%, #f7fafc 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    width: 100%;
}

.skeleton-card {
    background: var(--glass-bg-solid);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--glass-border);
    margin-bottom: 12px;
    height: 120px;
}

.skeleton-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* ===== DEBT FORM ===== */
.debt-form {
    margin-top: 12px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-actions .btn {
    flex: 1;
}

/* ===== DEBT DETAIL ===== */
.debt-detail-card {
    background: var(--glass-bg-solid);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.detail-header {
    background: var(--gradient-primary);
    padding: 24px;
    text-align: center;
    color: white;
}

.detail-app-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.detail-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
}

.detail-body {
    padding: 24px;
}

.detail-amount {
    text-align: center;
    margin-bottom: 24px;
}

.detail-amount-label {
    font-size: 12px;
    color: var(--text-light);
}

.detail-amount-value {
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.detail-info-item {
    background: #f7fafc;
    padding: 14px;
    border-radius: var(--radius-md);
}

.detail-info-label {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.detail-info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-progress {
    margin-bottom: 24px;
}

.detail-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.detail-progress-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.detail-progress-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.detail-notes {
    background: #f7fafc;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.detail-notes-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.detail-notes-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.detail-actions {
    display: flex;
    gap: 12px;
}

.detail-actions .btn {
    flex: 1;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg-solid);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--glass-border);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 10px;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-item i {
    font-size: 20px;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.nav-add {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    margin-top: -28px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.nav-item.nav-add i {
    font-size: 24px;
}

.nav-item.nav-add:hover {
    transform: scale(1.1);
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 340px;
    text-align: center;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.modal-icon.danger {
    background: rgba(252, 129, 129, 0.2);
    color: var(--danger);
}

.modal-icon.success {
    background: rgba(72, 187, 120, 0.2);
    color: var(--success);
}

.modal-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-actions .btn {
    flex: 1;
}

/* ===== TOAST ===== */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: calc(100% - 40px);
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    animation: toastIn 0.3s ease;
    pointer-events: auto;
}

.toast.hide {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: rgba(72, 187, 120, 0.2);
    color: var(--success);
}

.toast.error .toast-icon {
    background: rgba(252, 129, 129, 0.2);
    color: var(--danger);
}

.toast.info .toast-icon {
    background: rgba(99, 179, 237, 0.2);
    color: var(--info);
}

.toast.warning .toast-icon {
    background: rgba(246, 173, 85, 0.2);
    color: var(--warning);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.toast-message {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 380px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .detail-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .auth-form {
        padding: 32px;
    }

    .summary-cards {
        grid-template-columns: repeat(4, 1fr);
    }

    .debt-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== FORM HINTS & INFO BOX ===== */
.form-hint {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 6px;
    padding-left: 4px;
}

.form-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 20px;
}

.form-info-box i {
    color: var(--primary);
    font-size: 18px;
    margin-top: 2px;
}

.form-info-box p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== STATS VIEW ===== */
.stats-overview {
    margin-bottom: 16px;
}

.stats-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
}

.stat-value.danger {
    color: var(--danger);
}

.stat-value.success {
    color: var(--success);
}

.stat-value.primary {
    color: var(--primary);
}

.stats-breakdown {
    margin-bottom: 16px;
}

.stat-bar-item {
    margin-bottom: 16px;
}

.stat-bar-item:last-child {
    margin-bottom: 0;
}

.stat-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.stat-bar-name {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.stat-bar-amount {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
}

.stat-box i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-box-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-box-label {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

.no-data {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    padding: 20px;
}

/* ===== PROFILE VIEW ===== */
.profile-card {
    text-align: center;
    margin-bottom: 16px;
    padding: 32px 20px;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    position: relative;
    overflow: hidden;
}

.profile-avatar-large i {
    font-size: 48px;
    color: white;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-edit-avatar {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all var(--transition-fast);
}

.btn-edit-avatar:hover {
    background: var(--primary);
    color: white;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-email {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.profile-stat-label {
    font-size: 12px;
    color: var(--text-light);
}

.profile-menu {
    padding: 8px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 12px;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.profile-menu-item:hover {
    background: #f7fafc;
}

.profile-menu-item i:first-child {
    width: 24px;
    color: var(--primary);
}

.profile-menu-item span {
    flex: 1;
    text-align: left;
}

.profile-menu-item i:last-child {
    color: var(--text-light);
    font-size: 12px;
}

.profile-menu-item.danger {
    color: var(--danger);
}

.profile-menu-item.danger i:first-child {
    color: var(--danger);
}

/* ===== NOTIFICATION PANEL ===== */
.notification-panel {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.notification-panel.active {
    opacity: 1;
    pointer-events: auto;
}

.notification-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.notification-content {
    position: relative;
    width: calc(100% - 40px);
    max-width: 400px;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideDown 0.3s ease;
    padding: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.notification-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.notification-header h3 i {
    color: var(--primary);
}

.btn-close-notif {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f7fafc;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-close-notif:hover {
    background: var(--danger);
    color: white;
}

.notification-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    background: #f7fafc;
    transition: all var(--transition-fast);
}

.notification-item:last-child {
    margin-bottom: 0;
}

.notification-item.urgent {
    background: rgba(252, 129, 129, 0.1);
    border: 1px solid rgba(252, 129, 129, 0.3);
}

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-icon.warning {
    background: rgba(246, 173, 85, 0.2);
    color: var(--warning);
}

.notif-icon.danger {
    background: rgba(252, 129, 129, 0.2);
    color: var(--danger);
}

.notif-content {
    flex: 1;
}

.notif-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.notif-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.empty-notification {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-notification i {
    font-size: 48px;
    color: var(--success);
    margin-bottom: 12px;
}

.empty-notification p {
    font-size: 14px;
}

.notification-footer {
    padding: 16px;
    border-top: 1px solid #e2e8f0;
}

/* ===== PHOTO MODAL ===== */
.photo-preview-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.photo-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.photo-preview i {
    font-size: 48px;
    color: white;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-input {
    width: 100%;
    padding: 12px;
    border: 2px dashed #e2e8f0;
    border-radius: var(--radius-md);
    background: #f7fafc;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.file-input:hover {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
}

.form-divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
    color: var(--text-light);
    font-size: 12px;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.form-divider span {
    padding: 0 12px;
}

/* ===== THEME MODAL ===== */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.theme-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.theme-item.active {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

.theme-item.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.theme-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.theme-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Fix for theme item positioning */
.theme-item {
    position: relative;
}

@media (max-width: 380px) {
    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .theme-preview {
        width: 50px;
        height: 50px;
    }
}

/* ===== FORCE WHITE NAVBAR ===== */
.bottom-nav .nav-item {
    color: rgba(255, 255, 255, 0.6) !important;
}

.bottom-nav .nav-item.active {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.bottom-nav .nav-item i,
.bottom-nav .nav-item span {
    color: inherit !important;
}