/* ============================================
   PWA Mobile Dashboard - Modern Design
   ============================================ */

:root {
    /* Light Theme Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --accent-color: #00072D;
    --accent-hover: #001147;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    
    /* Priority Colors */
    --priority-high: #ef4444;
    --priority-medium: #f59e0b;
    --priority-low: #10b981;
    
    /* Reminder Colors */
    --reminder-warning: #f59e0b;
    --reminder-danger: #ef4444;
    --reminder-info: #3b82f6;
    --reminder-success: #10b981;
}

/* Dark Theme Colors */
.dark-theme {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --accent-color: #6366f1;
    --accent-hover: #4f46e5;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-bottom: 80px; /* Space for bottom nav */
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Header */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    box-shadow: var(--shadow);
    display: block !important;
    visibility: visible !important;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    min-height: 50px;
}

.logo-img-centered {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
    display: block !important;
    flex-shrink: 0;
    margin: 0 auto;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Main Content */
.app-main {
    padding: 16px;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

/* Info Container */
.info-container {
    margin-bottom: 20px;
}

/* Info Bar - Currency & Gold (Top Row) */
.info-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.info-bar:hover {
    opacity: 0.9;
}

.info-bar:active {
    transform: scale(0.98);
}

/* Info Bar - Dates (Bottom Row) */
.info-bar-dates {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-width: 100%;
}

.date-card {
    grid-column: span 1;
}

/* Financial Transaction Button */
.financial-transaction-btn-container {
    padding: 16px;
    margin-bottom: 8px;
}

.financial-transaction-btn {
    width: 100%;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.financial-transaction-btn:hover {
    background: var(--bg-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.financial-transaction-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow);
}

.financial-transaction-btn i {
    font-size: 18px;
    color: var(--accent-color);
}

/* Transaction Type Radio */
.transaction-type-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.transaction-type-option {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.transaction-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.transaction-type-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    transition: all 0.2s;
    text-align: center;
    height: 50px;
    max-height: 50px;
}

.transaction-type-expense .transaction-type-content {
    color: #ef4444;
}

.transaction-type-income .transaction-type-content {
    color: #10b981;
}

.transaction-type-option input[type="radio"]:checked + .transaction-type-content {
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(0, 7, 45, 0.2);
}

.dark-theme .transaction-type-option input[type="radio"]:checked + .transaction-type-content {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.transaction-type-expense input[type="radio"]:checked + .transaction-type-content {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.transaction-type-income input[type="radio"]:checked + .transaction-type-content {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.transaction-type-content i {
    font-size: 16px;
    margin-bottom: 0;
}

.transaction-type-content span {
    font-size: 12px;
    font-weight: 600;
}

/* Transaction Group Radio */
.transaction-group-group {
    display: flex;
    gap: 12px;
}

.transaction-group-option {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.transaction-group-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.transaction-group-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    transition: all 0.2s;
    text-align: center;
    height: 50px;
    max-height: 50px;
}

.transaction-group-kisisel .transaction-group-content {
    color: #00072D;
}

.transaction-group-aile .transaction-group-content {
    color: #06b6d4;
}

.transaction-group-ticari .transaction-group-content {
    color: #f59e0b;
}

.transaction-group-option input[type="radio"]:checked + .transaction-group-content {
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(0, 7, 45, 0.2);
}

.dark-theme .transaction-group-option input[type="radio"]:checked + .transaction-group-content {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.transaction-group-kisisel input[type="radio"]:checked + .transaction-group-content {
    border-color: #00072D;
    box-shadow: 0 0 0 3px rgba(0, 7, 45, 0.2);
}

.dark-theme .transaction-group-kisisel input[type="radio"]:checked + .transaction-group-content {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.transaction-group-aile input[type="radio"]:checked + .transaction-group-content {
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.transaction-group-ticari input[type="radio"]:checked + .transaction-group-content {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.transaction-group-content span {
    font-size: 12px;
    font-weight: 600;
}

/* Amount Input Group */
.amount-input-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.amount-input-group input[type="number"] {
    flex: 1;
}

.amount-input-group .amount-currency {
    width: 80px;
    flex-shrink: 0;
}

/* Make date cards wider - each takes space of 2 currency cards */
@media (min-width: 361px) {
    .info-bar-dates {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .date-card {
        grid-column: span 2;
    }
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:active {
    transform: scale(0.98);
}

.info-card i {
    font-size: 14px;
    color: var(--accent-color);
    margin-bottom: 6px;
    display: block;
}

.info-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.2;
}

.date-card .info-value {
    font-size: 11px;
    line-height: 1.3;
}

.info-label {
    font-size: 9px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Dashboard Sections */
.dashboard-section {
    background: var(--bg-card);
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--accent-color);
    font-size: 14px;
}

.btn-add {
    background: var(--accent-color);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    font-size: 14px;
}

.btn-add:hover {
    background: var(--accent-hover);
}

.btn-add:active {
    transform: scale(0.95);
}

.section-content {
    padding: 16px;
}

/* Routines */
.routines-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.routine-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: background-color 0.2s;
}

.routine-item:active {
    background: var(--border-color);
}

.routine-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.routine-label {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}

.routine-checkbox:checked + .routine-label {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* Reminders */
.reminders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reminder-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    border-left: 4px solid;
    background: var(--bg-secondary);
}

.reminder-warning {
    border-left-color: var(--reminder-warning);
}

.reminder-danger {
    border-left-color: var(--reminder-danger);
}

.reminder-info {
    border-left-color: var(--reminder-info);
}

.reminder-success {
    border-left-color: var(--reminder-success);
}

.reminder-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.reminder-warning .reminder-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--reminder-warning);
}

.reminder-danger .reminder-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--reminder-danger);
}

.reminder-info .reminder-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--reminder-info);
}

.reminder-success .reminder-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--reminder-success);
}

.reminder-content {
    flex: 1;
}

.reminder-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.reminder-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.reminder-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.reminder-notification-time {
    font-size: 10px;
    color: var(--accent-color);
    margin-top: 2px;
    font-weight: 500;
}

.reminder-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-icon:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-icon.btn-edit:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.btn-icon.btn-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.btn-icon:active {
    transform: scale(0.95);
}

.form-section-divider {
    margin: 20px 0 12px 0;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.form-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Todos */
.todos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.todo-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 4px solid transparent;
    transition: background-color 0.2s;
    position: relative;
}

.todo-item.priority-high {
    border-left-color: var(--priority-high);
}

.todo-item.priority-medium {
    border-left-color: var(--priority-medium);
}

.todo-item.priority-low {
    border-left-color: var(--priority-low);
}

.todo-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--accent-color);
    flex-shrink: 0;
}

.todo-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: default;
}

.todo-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}

.todo-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.todo-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

.todo-priority-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.todo-priority-badge.priority-high {
    background: rgba(239, 68, 68, 0.1);
    color: var(--priority-high);
}

.todo-priority-badge.priority-medium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--priority-medium);
}

.todo-priority-badge.priority-low {
    background: rgba(16, 185, 129, 0.1);
    color: var(--priority-low);
}

.todo-date {
    font-size: 11px;
    color: var(--text-muted);
}

.todo-checkbox:checked ~ .todo-label .todo-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* Quote Section */
.quote-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    border: none;
}

.quote-section .section-content {
    padding: 24px 20px;
    text-align: center;
}

.quote-text {
    font-size: 16px;
    font-weight: 500;
    color: white;
    line-height: 1.6;
    margin-bottom: 12px;
    font-style: italic;
}

.quote-author {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Announcements */
.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.announcement-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.announcement-card:active {
    transform: scale(0.98);
    background: var(--border-color);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 12px;
}

.announcement-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.3;
}

.announcement-date {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.announcement-date i {
    font-size: 10px;
}

.announcement-body {
    margin-top: 8px;
}

.announcement-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcement-detail-date {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.announcement-detail-content {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.7;
    white-space: pre-wrap;
}

/* Todo Detail Modal */
.todo-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.todo-detail-priority {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.todo-detail-priority i {
    color: var(--text-secondary);
}

.todo-detail-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.todo-detail-date i {
    color: var(--text-secondary);
}

.todo-detail-content {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.7;
    white-space: pre-wrap;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* Todo Item Clickable */
.todo-item[data-bs-toggle="modal"] {
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.todo-item[data-bs-toggle="modal"]:active {
    background: var(--bg-card);
    transform: scale(0.98);
}

/* Journal */
.journal-date-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-nav-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    font-size: 12px;
}

.date-nav-btn:hover:not(:disabled) {
    background: var(--border-color);
}

.date-nav-btn:active:not(:disabled) {
    background: var(--border-color);
    transform: scale(0.95);
}

.date-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.journal-date-display {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 80px;
    text-align: center;
    transition: color 0.3s ease;
}

.journal-date-today {
    color: var(--text-secondary);
}

.journal-date-past {
    color: var(--accent-color);
}

.dark-theme .journal-date-past {
    color: #818cf8;
}

.journal-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.journal-textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.2s;
}

.journal-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.journal-textarea::placeholder {
    color: var(--text-muted);
}

.btn-save-journal {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-save-journal:hover {
    background: var(--accent-hover);
}

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

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 11px;
    font-weight: 500;
    flex: 1;
    max-width: 100px;
}

.nav-item i {
    font-size: 20px;
}

.nav-item.active {
    color: var(--accent-color);
}

.nav-item:active {
    transform: scale(0.95);
}

.nav-item {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
    z-index: 1;
}

/* Prevent active state on quick actions toggle */
#quick-actions-toggle.active,
#quick-actions-toggle:active {
    color: var(--text-secondary) !important;
}

/* Bottom Spacer */
.bottom-spacer {
    height: 20px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
}

.modal.show {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1001;
    animation: slideUp 0.3s ease;
    box-shadow: var(--shadow-lg);
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    padding: 4px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.modal-close:active {
    background: var(--bg-secondary);
}

.modal-body {
    padding: 20px;
    overflow-x: hidden;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    max-width: 100%;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

/* Detail Modal Styles */
.detail-item {
    margin-bottom: 20px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.detail-value {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.5;
    word-wrap: break-word;
}

.detail-value .todo-priority-badge,
.detail-value .reminder-priority-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Reminder Priority Badge Styles */
.reminder-priority-badge {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.reminder-priority-badge.reminder-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--reminder-danger);
}

.reminder-priority-badge.reminder-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--reminder-warning);
}

.reminder-priority-badge.reminder-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--reminder-info);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.days-checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.day-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    font-size: 14px;
    color: var(--text-primary);
}

.day-checkbox-label:hover {
    background: var(--border-color);
}

.day-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color);
    flex-shrink: 0;
}

.day-checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: var(--accent-color);
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.required-asterisk {
    color: #ef4444;
    margin-left: 2px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* iOS Date/Time Input Fixes */
input[type="date"],
input[type="time"],
input[type="datetime-local"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

/* Prevent iOS input zoom on focus */
@media screen and (max-width: 768px) {
    input[type="date"],
    input[type="time"],
    input[type="datetime-local"],
    input[type="text"],
    input[type="email"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
    }
}

/* Buttons */
.btn {
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

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

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

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

.modal-footer .btn {
    flex: 1;
}

/* Responsive Adjustments */
@media (max-width: 360px) {
    .info-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-bar-dates {
        max-width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-value {
        font-size: 11px;
    }
    
    .info-label {
        font-size: 8px;
    }
}

/* Safe Area Support for iOS */
@supports (padding: max(0px)) {
    .app-main {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    
    .bottom-nav {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-section {
    animation: fadeIn 0.3s ease;
}

/* Touch Feedback */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Menu Modal */
.menu-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
}

.menu-modal.show {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.menu-content {
    position: relative;
    background: var(--bg-card);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1001;
    animation: slideUp 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 10;
}

.menu-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.menu-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 22px;
    padding: 4px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-close:active {
    background: var(--bg-secondary);
    transform: scale(0.95);
}

.menu-list {
    padding: 8px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:active {
    background: var(--bg-secondary);
}

.menu-item i:first-child {
    font-size: 20px;
    color: var(--accent-color);
    width: 24px;
    text-align: center;
}

.menu-item span {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
}

.menu-arrow {
    font-size: 14px;
    color: var(--text-muted);
}

/* Notifications List */
.notifications-list {
    padding: 8px 0;
    max-height: calc(85vh - 80px);
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
    position: relative;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:active {
    background: var(--bg-secondary);
}

.notification-item.unread {
    background: var(--bg-secondary);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-color);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: rgba(0, 7, 45, 0.1);
    color: var(--accent-color);
}

.dark-theme .notification-icon {
    background: rgba(99, 102, 241, 0.1);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.notification-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 6px;
}

.notification-time {
    font-size: 11px;
    color: var(--text-muted);
}

.notification-action {
    flex-shrink: 0;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 8px;
    padding: 4px;
    cursor: pointer;
    border-radius: 50%;
    transition: color 0.2s;
}

.action-btn:active {
    color: var(--accent-color);
}

/* ============================================
   Login Page Styles
   ============================================ */

/* Login Container */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-primary);
    position: relative;
}

.login-content {
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Theme Toggle Button */
.login-theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 20px;
    padding: 12px;
    cursor: pointer;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-theme-toggle:hover {
    background: var(--bg-secondary);
    transform: scale(1.05);
}

.login-theme-toggle:active {
    transform: scale(0.95);
}

/* ============================================
   Toast Notification System
   ============================================ */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-color);
}

.toast.success::before {
    background: var(--success-color);
}

.toast.error::before {
    background: var(--danger-color);
}

.toast.warning::before {
    background: var(--warning-color);
}

.toast.info::before {
    background: var(--info-color);
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast.success .toast-icon {
    color: var(--success-color);
}

.toast.error .toast-icon {
    color: var(--danger-color);
}

.toast.warning .toast-icon {
    color: var(--warning-color);
}

.toast.info .toast-icon {
    color: var(--info-color);
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--text-primary);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.fade-out {
    animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ============================================
   Confirmation Dialog
   ============================================ */
.confirm-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
    backdrop-filter: blur(4px);
}

.confirm-dialog {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    animation: dialogSlideUp 0.3s ease-out;
}

.confirm-dialog-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
    background: var(--bg-secondary);
}

.confirm-dialog-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.confirm-dialog-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.confirm-dialog-icon.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.confirm-dialog-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 12px;
}

.confirm-dialog-message {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 24px;
}

.confirm-dialog-actions {
    display: flex;
    gap: 12px;
}

.confirm-dialog-actions button {
    flex: 1;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-dialog-cancel {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.confirm-dialog-cancel:hover {
    background: var(--border-color);
}

.confirm-dialog-confirm {
    background: var(--danger-color);
    color: white;
}

.confirm-dialog-confirm:hover {
    background: #dc2626;
}

.confirm-dialog-confirm.primary {
    background: var(--accent-color);
}

.confirm-dialog-confirm.primary:hover {
    background: var(--accent-hover);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes dialogSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   Page Transitions
   ============================================ */
.app-main {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-modal {
    animation: none;
}

.menu-modal.show {
    animation: fadeIn 0.2s ease-out;
}

.menu-content {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal {
    animation: none;
}

.modal.show {
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   Lazy Loading
   ============================================ */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

.lazy-load-placeholder {
    background: var(--bg-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--text-muted);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Button hover transitions */
.btn, .btn-primary, .btn-secondary {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

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

/* Card hover effects */
.card, .settings-item, .notification-item {
    transition: all 0.2s ease;
}

.card:hover, .settings-item:hover, .notification-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Form input focus transitions */
.form-control:focus {
    transition: all 0.2s ease;
}

/* List item transitions */
.routine-item, .reminder-item, .todo-item {
    transition: all 0.2s ease;
}

.routine-item:hover, .reminder-item:hover, .todo-item:hover {
    background: var(--bg-secondary);
}

/* ============================================
   Page Specific Styles
   ============================================ */

/* Page Header Styles */
.page-container {
    padding: 20px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-actions {
    text-align: right;
    margin-bottom: 20px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

/* Settings Page Styles */
.settings-container {
    padding: 20px;
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.settings-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-section {
    margin-bottom: 30px;
}

.settings-section-header {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.settings-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
}

.settings-item-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-item-value {
    font-size: 14px;
    color: var(--text-secondary);
}

.settings-item-readonly {
    background: var(--bg-secondary);
    opacity: 0.8;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--accent-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.password-change-form {
    display: none;
}

.password-change-form.show {
    display: block;
}

.change-password-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.change-password-btn:hover {
    background: var(--accent-hover);
}

.settings-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Currencies Page Styles */
.currencies-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.currencies-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.currencies-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.back-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.back-btn:hover {
    background: var(--border-color);
}

.currencies-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.currencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.currency-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.currency-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.currency-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.currency-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.currency-code {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 6px;
}

.currency-prices {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.price-item {
    flex: 1;
}

.price-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.price-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.price-change {
    font-size: 11px;
    margin-top: 4px;
}

.price-change.positive {
    color: #10b981;
}

.price-change.negative {
    color: #ef4444;
}

.loading-state {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.error-state {
    text-align: center;
    padding: 40px;
    color: #ef4444;
}

.refresh-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.refresh-btn:hover {
    background: var(--accent-hover);
}

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

/* List Item Actions */
.list-item-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.list-item-action-btn {
    padding: 6px 12px;
    font-size: 12px;
}

.list-item-action-btn.delete {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.list-item-content {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: move;
    flex: 1;
}

.drag-handle {
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Form Group Inline */
.form-group-inline {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.form-group-inline-item {
    flex: 1;
}

.form-group-after-buttons {
    margin-top: 20px;
}

.modal-footer-no-border {
    padding: 0;
    margin-top: 20px;
    border-top: none;
}

.form-group-center {
    text-align: center;
    margin: 20px 0;
}

.btn-swap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 0;
}

.form-control-result {
    background: var(--bg-secondary);
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.form-group-rates {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.rates-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.rates-display {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
}

.transaction-group-spacing {
    margin-bottom: 12px;
}

.payment-method-wrapper {
    width: 100%;
}

.payment-sub-option {
    flex: 1;
}

.btn-full-width {
    flex: 1;
}

.form-group-spacing {
    margin-top: 15px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-action {
    flex: 1;
}

.form-control-spacing {
    margin-top: 8px;
}

.login-theme-toggle:active {
    transform: scale(0.95);
}

/* Logo Section */
.login-logo {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: contain;
    margin-bottom: 16px;
    box-shadow: none;
    border: none;
}

.login-subtitle-en {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-color);
    margin: 0 0 8px 0;
    letter-spacing: 0.3px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

/* Login Form */
.login-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
}

.login-form .form-group {
    margin-bottom: 24px;
}

.login-form .form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.login-form .form-label i {
    color: var(--accent-color);
    font-size: 14px;
}

.login-form .form-control {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.login-form .form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 7, 45, 0.1);
}

.dark-theme .login-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.login-form .form-control::placeholder {
    color: var(--text-muted);
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--accent-color);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.forgot-password {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password:active {
    color: var(--accent-hover);
}

/* Login Button */
.btn-login {
    width: 100%;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 7, 45, 0.3);
    position: relative;
}

.dark-theme .btn-login {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-login:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 16px rgba(0, 7, 45, 0.4);
    transform: translateY(-1px);
}

.dark-theme .btn-login:hover {
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 7, 45, 0.3);
}

.dark-theme .btn-login:active {
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    transition: transform 0.2s;
}

.btn-login:hover .btn-icon {
    transform: translateX(4px);
}

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.login-divider span {
    padding: 0 16px;
}

/* Social Login */
.social-login {
    margin-bottom: 24px;
}

.social-btn {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-color);
}

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

.social-btn i {
    font-size: 18px;
}

.google-btn {
    color: #4285F4;
}

/* Sign Up Link */
.signup-link {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.signup-link a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
    transition: color 0.2s;
}

.signup-link a:active {
    color: var(--accent-hover);
}

/* Login Loading State */
.btn-login.loading {
    pointer-events: none;
}

.btn-login.loading .btn-text {
    opacity: 0;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Login Error Styles */
.form-control.error {
    border-color: var(--danger-color) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    padding: 12px 16px;
    border-radius: 12px;
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
    animation: slideDown 0.3s ease;
}

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

/* Login Responsive Adjustments */
@media (max-width: 360px) {
    .login-content {
        padding: 0;
    }
    
    .login-form {
        padding: 24px 20px;
    }
    
    .login-title {
        font-size: 28px;
    }
    
    .login-logo-img {
        width: 70px;
        height: 70px;
        box-shadow: none;
        border: none;
    }
}

/* Login Safe Area Support for iOS */
@supports (padding: max(0px)) {
    .login-container {
        padding: max(20px, env(safe-area-inset-top)) 
                 max(20px, env(safe-area-inset-right))
                 max(20px, env(safe-area-inset-bottom))
                 max(20px, env(safe-area-inset-left));
    }
    
    .login-theme-toggle {
        top: max(20px, env(safe-area-inset-top));
        right: max(20px, env(safe-area-inset-right));
    }
}

