/**
 * WealthFlow Pro - Main Stylesheet
 * Consolidated CSS for all application functionality
 */

/* ============================
   GLOBAL BASE STYLES
   ============================ */

/* Reset and ensure proper rendering */
* {
    box-sizing: border-box;
}

/* Fix form border rendering issues */
.form-control, .form-select {
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    outline: none !important;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
    outline: none !important;
}

/* Ensure input groups render properly */
.input-group .form-control {
    border-left: 1px solid #ced4da !important;
}

.input-group .input-group-text {
    border: 1px solid #ced4da !important;
    border-right: none !important;
}

/* Additional overflow prevention for common elements */
.table-responsive {
    overflow-x: auto;
    max-width: 100%;
}

.table {
    max-width: 100%;
    table-layout: auto;
}

.table td, .table th {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Form elements */
.form-control, .form-select, .input-group {
    max-width: 100%;
    box-sizing: border-box;
}

/* Let Bootstrap handle form styling naturally */

/* Button groups */
.btn-group, .btn-toolbar {
    max-width: 100%;
    flex-wrap: wrap;
}

/* Modal constraints */
.modal-dialog {
    max-width: 600px;
    margin: 15px auto;
}

.modal-dialog.modal-lg {
    max-width: 800px;
}

/* Image constraints */
img {
    max-width: 100%;
    height: auto;
}

/* Text content constraints */
pre, code {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Ensure Bootstrap text alignment classes work properly */
.text-center {
    text-align: center !important;
}

.text-start {
    text-align: left !important;
}

.text-end {
    text-align: right !important;
}

.text-md-end {
    text-align: left;
}

@media (min-width: 768px) {
    .text-md-end {
        text-align: right !important;
    }
}

/* Ensure footer alignment works */
.footer .text-md-end {
    text-align: left;
}

@media (min-width: 768px) {
    .footer .text-md-end {
        text-align: right !important;
    }
}

/* ============================
   FOOTER AND NAVBAR STYLES
   ============================ */

/* Footer Admin Dropdown Styles */
.footer .dropup .dropdown-menu {
    background-color: #495057;
    border: 1px solid #6c757d;
    margin-bottom: 5px;
}

.footer .dropup .dropdown-item {
    color: #f8f9fa;
    transition: all 0.3s ease;
}

.footer .dropup .dropdown-item:hover,
.footer .dropup .dropdown-item:focus {
    background-color: #6c757d;
    color: #ffffff;
}

.footer .dropup .dropdown-divider {
    border-top: 1px solid #6c757d;
}

.footer .dropdown-toggle::after {
    border-bottom: 0.3em solid;
    border-top: none;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
}

/* Improved navbar dropdown styling */
.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 5px;
}

.navbar .dropdown-item {
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.navbar .dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.navbar .dropdown-header {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Highlighted Add Transaction Button */
.navbar .nav-link.btn-success {
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.navbar .nav-link.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
    background-color: #218838 !important;
}

/* Brand styling */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-brand small {
    font-size: 0.7rem;
    font-weight: 400;
}

/* Navbar overflow prevention - Desktop friendly */
.navbar {
    width: 100%;
    box-sizing: border-box;
}

.nav-item {
    white-space: nowrap;
}

/* Add Transaction button styling */
.navbar-add-btn {
    border-radius: 50% !important;
    padding: 8px 12px !important;
    font-size: 0.875rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

/* Navbar responsive text sizing */
@media (min-width: 768px) and (max-width: 1199px) {
    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.3rem 0.7rem;
    }
    
    .navbar-add-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.9rem !important;
    }
    
    .dropdown-item {
        font-size: 0.875rem;
        padding: 0.3rem 0.8rem;
    }
}

@media (min-width: 1200px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    .navbar-add-btn {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Desktop navbar - ensure proper horizontal layout */
@media (min-width: 768px) {
    .navbar-nav {
        flex-direction: row !important;
        align-items: center;
    }
    
    .nav-item {
        margin-bottom: 0 !important;
        width: auto !important;
    }
    
    .dropdown-menu {
        position: absolute !important;
        max-width: 300px;
        white-space: normal;
        word-wrap: break-word;
    }
    
    /* Let Bootstrap handle container widths and centering naturally */
}

/* ============================
   CONTACT DETAIL STYLES
   ============================ */

/* Contact avatar styles */
.contact-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #6c757d; /* Fallback color */
}

.large-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
}

/* Dynamic contact avatar colors */
.contact-avatar.avatar-color-1 { background-color: #e74c3c; }
.contact-avatar.avatar-color-2 { background-color: #3498db; }
.contact-avatar.avatar-color-3 { background-color: #2ecc71; }
.contact-avatar.avatar-color-4 { background-color: #f39c12; }
.contact-avatar.avatar-color-5 { background-color: #9b59b6; }
.contact-avatar.avatar-color-6 { background-color: #1abc9c; }
.contact-avatar.avatar-color-7 { background-color: #34495e; }
.contact-avatar.avatar-color-8 { background-color: #e67e22; }
.contact-avatar.avatar-color-9 { background-color: #95a5a6; }
.contact-avatar.avatar-color-10 { background-color: #f1c40f; }
.contact-avatar.avatar-color-11 { background-color: #8e44ad; }
.contact-avatar.avatar-color-12 { background-color: #27ae60; }

/* General gradient background for cards and modals */
.gradient-bg {
    background: linear-gradient(to right, #4e73df, #224abe);
    color: white;
}

/* Login page specific gradient background */
body.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PDF-specific styles */
@media print {
    body {
        padding: 0;
        margin: 0;
    }
    .container {
        width: 100%;
        max-width: 100%;
    }
    .no-print {
        display: none !important;
    }
}

/* ============================
   LOGIN PAGE STYLES
   ============================*/

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 450px;
    width: 100%;
    color: #333333; /* Ensure text is dark on login card */
}

.brand-logo {
    text-align: center;
    margin-bottom: 30px;
}

.brand-logo i {
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

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

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.default-credentials {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    font-size: 0.9rem;
}

.input-group-text {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-right: none;
}

.form-control {
    border-left: none;
}

.form-control:focus + .input-group-text,
.input-group-text + .form-control:focus {
    border-color: #667eea;
}

/* ============================
   BALANCE VISIBILITY STYLES
   ============================ */

.balance-hidden {
    font-family: monospace;
    letter-spacing: 2px;
}

#balance-toggle-btn {
    transition: all 0.3s ease;
}

#balance-toggle-btn:hover {
    transform: scale(1.05);
}

.balance-display, .balance-value {
    transition: all 0.3s ease;
}

/* ============================
   DEBT MANAGEMENT STYLES
   ============================ */

.debt-card {
    border-left: 4px solid transparent;
}

.debt-owe {
    border-left-color: #dc3545;
}

.debt-owed {
    border-left-color: #28a745;
}

/* ============================
   ACCOUNT MANAGEMENT STYLES
   ============================ */

.account-card {
    transition: all 0.3s ease;
}

.account-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.account-icon {
    font-size: 2em;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    margin-right: 15px;
}

.bank-icon { background-color: #0d6efd; }
.cash-icon { background-color: #198754; }
.card-icon { background-color: #dc3545; }
.wallet-icon { background-color: #6610f2; }
.other-icon { background-color: #6c757d; }

.transfer-icon {
    font-size: 1.2em;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #0dcaf0;
    color: white;
}

.account-detail {
    font-size: 0.9em;
    color: #6c757d;
}

.action-buttons {
    opacity: 0.6;
    transition: all 0.2s ease;
}

.action-buttons:hover {
    opacity: 1;
}

/* ============================
   TRANSACTION STYLES
   ============================ */

.filter-card {
    position: sticky;
    top: 20px;
}

.receipt-image {
    max-height: 40px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.receipt-image:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
}

.quick-filter {
    font-size: 0.8rem;
}

.transaction-row:hover {
    background-color: rgba(0,0,0,0.02);
}

/* ============================
   ADD TRANSACTION STYLES
   ============================ */

.transaction-type-btn {
    border: 2px solid #dee2e6;
    padding: 15px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.transaction-type-btn.active {
    border-color: #007bff;
    background-color: #007bff;
    color: white;
}

.transaction-type-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-selector {
    display: none;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    padding: 15px;
}

.category-selector.show {
    display: block;
}

.quick-amount {
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-amount:hover {
    transform: scale(1.05);
}

.camera-section {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.camera-section:hover {
    border-color: #007bff;
    background: #e7f1ff;
}

#video {
    max-width: 100%;
    border-radius: 8px;
}

#canvas {
    display: none;
}

.camera-controls {
    margin-top: 15px;
}

.preview-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    margin-top: 10px;
}

.receipt-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.receipt-option {
    flex: 1;
    padding: 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.receipt-option.active {
    border-color: #007bff;
    background-color: #e7f1ff;
}

/* ============================
   CATEGORY MANAGEMENT STYLES
   ============================ */

.icon-preview {
    font-size: 1.5rem;
    margin-right: 10px;
    vertical-align: middle;
}

.category-card {
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.color-preview {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    margin-right: 8px;
    vertical-align: middle;
}

/* ============================
   SETTINGS AND PROFILE STYLES
   ============================ */

.settings-section {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.setting-item {
    border-bottom: 1px solid #dee2e6;
    padding: 20px 0;
}

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

.profile-card {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
}

/* ============================
   DEVELOPMENT MODE STYLES
   ============================ */

.dev-accordion {
    margin: 10px 0;
    position: relative;
    z-index: 1050;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dev-accordion .accordion-item {
    background: #343a40;
    border: 1px solid #495057;
    margin-bottom: 5px;
}

.dev-accordion .accordion-header {
    margin-bottom: 0;
}

.dev-accordion .accordion-button {
    background: #495057;
    color: #ffffff;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
}

.dev-accordion .accordion-button:not(.collapsed) {
    background: #5a6268;
    color: #ffffff;
    box-shadow: none;
}

.dev-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.25);
}

.dev-accordion .accordion-button::after {
    filter: invert(1);
}

.dev-accordion .accordion-body {
    background: #343a40;
    color: #ffffff;
    padding: 20px;
}

.dev-error {
    background: #dc3545;
    color: white;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 4px solid #a71e2a;
}

.dev-info {
    background: #17a2b8;
    color: white;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 4px solid #138496;
}

.dev-info h6 {
    margin-bottom: 10px;
    font-weight: bold;
}

.dev-info pre,
.dev-info code {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 4px;
    color: #ffffff;
}

/* ============================
   CONSISTENT SUMMARY CARD STYLING
   ============================ */

/* Consistent summary card styling for all pages */
.summary-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ============================
   ACCOUNT DETAIL CARDS
   ============================ */

/* Account detail cards */
.account-card {
    border: 1px solid #e3e6f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.account-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: #5a6c7d;
}

/* Account icon styling */
.account-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 1.25rem;
    color: white;
}

.account-icon.bank-icon {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.account-icon.cash-icon {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.account-icon.card-icon {
    background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%);
}

.account-icon.wallet-icon {
    background: linear-gradient(135deg, #6f42c1 0%, #4e2e8e 100%);
}

.account-icon.other-icon {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

/* Account info layout */
.account-info {
    flex: 1;
    min-width: 0; /* Prevent flex item from overflowing */
}

.account-info h5 {
    font-weight: 600;
    margin-bottom: 4px;
    color: #2c3e50;
}

.account-detail {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.account-balance h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* Account card footer with action buttons */
.account-card .card-footer {
    background: rgba(248, 249, 250, 0.8);
    border-top: 1px solid #e3e6f0;
    border-radius: 0 0 12px 12px;
    padding: 12px 20px;
}

.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.action-buttons .btn {
    font-size: 0.8125rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.action-buttons .btn:hover {
    transform: translateY(-1px);
}

/* Extra small button size for account cards */
.btn-xs {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 32px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-xs i {
    font-size: 0.75rem;
}

/* ============================
   GENERAL UTILITY STYLES
   ============================ */

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Progress circles for goals */
.progress-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    border: 3px solid #e9ecef;
}

/* Motivational quotes styling */
.motivational-quote {
    font-style: italic;
    color: #6c757d;
}

/* Custom button styles */
.btn-outline-success:hover {
    transform: translateY(-2px);
}

.btn-outline-danger:hover {
    transform: translateY(-2px);
}

/* Search and filter styles */
.category-search-container {
    margin-bottom: 15px;
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
}

.no-results-message {
    text-align: center;
    color: #6c757d;
    padding: 20px;
    font-style: italic;
}

.parent-child-connector {
    color: #6c757d;
    margin-right: 8px;
}

.child-category {
    margin-left: 20px;
    padding: 5px 0;
}

/* Upload and camera sections */
.upload-section, .camera-section {
    display: none;
}

.upload-section.show, .camera-section.show {
    display: block;
}

/* Additional category and form styles */
.parent-category {
    margin-bottom: 5px;
}

.child-category-container {
    margin-bottom: 15px;
}

.category-item {
    border-radius: 5px;
    padding: 5px;
    margin: 2px 0;
}

.category-item:hover {
    background-color: #f8f9fa;
}

/* Form Check (Radio and Checkbox) Styling - Modern Card Style */
.form-check {
    margin-bottom: 0.5rem;
    padding-left: 0;
    position: relative;
}

.form-check-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-direction: row;
    padding: 12px 16px 12px 35px; /* Desktop: 5px gap from radio to content */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-left: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-height: 48px;
}

.form-check-label:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-check-input {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    flex-shrink: 0;
    z-index: 1;
    width: 18px;
    height: 18px;
}

.form-check-input:checked + .form-check-label {
    font-weight: 600;
    color: #0d6efd;
    background: linear-gradient(135deg, #e3f2fd 0%, #90caf9 100%);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Export Modal Radio Button Layout - Icon on left side */
.form-check-label .small {
    margin-left: 8px;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Special styling for export modal format selection */
.modal .form-check-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 16px 12px 35px;
    min-height: 48px;
}

.modal .form-check-input {
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

/* Export format icon and text layout */
.form-check-label .export-content {
    display: flex;
    align-items: center;
    flex-direction: row;
}

.form-check-label .export-content i {
    margin-right: 10px;
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.form-check-label .export-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Mobile responsive adjustments */
@media (max-width: 767.98px) {
    .form-check {
        margin-bottom: 0.25rem; /* Reduced spacing on mobile */
    }
    
    .form-check-label {
        padding: 8px 10px 8px 33px; /* Mobile: 3px gap from radio to content */
        min-height: 40px;
    }
    
    .form-check-input {
        left: 12px;
        width: 18px;
        height: 18px;
    }
    
    .modal .form-check-label {
        padding: 8px 10px 8px 33px;
        min-height: 40px;
    }
    
    .modal .form-check-input {
        left: 12px;
    }
    
    .form-check-label .export-content i {
        font-size: 1.1rem;
        width: 20px;
        margin-right: 8px;
    }
}

/* Compact radio buttons for inline layouts */
.form-check.form-check-inline .form-check-label {
    flex-direction: row;
    align-items: center;
    padding: 8px 12px 8px 35px;
    margin-right: 1rem;
    display: inline-flex;
    width: auto;
    min-height: auto;
}

.form-check.form-check-inline .form-check-input {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
}

/* ============================
   ACCOUNT AND SUMMARY CARD STYLES
   ============================ */

/* Consistent summary card styling for all pages */
.summary-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.summary-card .card-body {
    padding: 1.5rem;
}

.summary-card .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.summary-card .display-6 {
    font-size: 1.75rem;
    font-weight: 700;
}

/* Account detail cards */
.account-card {
    border: 1px solid #e3e6f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.account-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: #0d6efd;
}

.account-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.account-card .account-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.account-card .account-icon i {
    font-size: 1.5rem;
    color: white;
}

/* Account icon colors */
.account-icon.bank-icon {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.account-icon.cash-icon {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.account-icon.card-icon {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.account-icon.wallet-icon {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
}

.account-icon.other-icon {
    background: linear-gradient(135deg, #6c757d, #545b62);
}

.account-card .account-detail {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.account-card .account-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.account-card .account-balance {
    margin-top: auto;
    padding-top: 1rem;
}

.account-card .account-balance h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* Card footer with buttons */
.account-card .card-footer {
    background: #f8f9fa;
    border-top: 1px solid #e3e6f0;
    border-radius: 0 0 12px 12px;
    padding: 1rem 1.5rem;
}

.account-card .action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.account-card .action-buttons .btn {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ============================
   MISSING COMPONENT STYLES
   ============================ */

/* Balance visibility styling */
.balance-hidden {
    font-family: monospace;
    letter-spacing: 2px;
}

#balance-toggle-btn {
    transition: all 0.3s ease;
}

#balance-toggle-btn:hover {
    transform: scale(1.05);
}

.balance-display, .balance-value {
    transition: all 0.3s ease;
}

/* Development tools styling */
.verification-item, .reset-item {
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
}

.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.danger-zone {
    background: #ffebee;
    border: 2px solid #f44336;
    padding: 20px;
    border-radius: 10px;
}

/* Insight and goal cards */
.insight-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #e7f3ff 100%);
    border: 1px solid #e3f2fd;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15);
}

.goal-card {
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

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

.goal-active {
    border-left: 4px solid #28a745;
}

.goal-completed {
    border-left: 4px solid #007bff;
    background-color: #f8f9ff;
}

.goal-paused {
    border-left: 4px solid #ffc107;
}

/* Chart container */
.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Log container for admin */
.log-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

/* Asset preview image */
.img-asset-preview {
    max-height: 200px;
    width: auto;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

/* Utility classes */
.text-uppercase {
    text-transform: uppercase !important;
}

/* ============================
   GLOBAL CARD STYLES
   ============================ */

/* Global card styling with consistent margins and animations */
.card {
    margin-bottom: 1.5rem;
    border: 1px solid #e3e6f0;
    border-radius: 0.75rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 2rem 0 rgba(58, 59, 69, 0.2);
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Alert styling with consistent margins */
.alert {
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Button consistent spacing */
.btn {
    margin-bottom: 0.5rem;
}

/* Form consistent spacing */
.form-group, .mb-3 {
    margin-bottom: 1rem;
}

/* Mobile responsive enhancements */
@media (max-width: 767.98px) {
    .login-card {
        margin: 1rem;
        padding: 2rem;
    }
    
    .form-check-label {
        padding: 6px 8px;
        font-size: 0.9rem;
    }
    
    .chart-container {
        height: 300px;
        padding: 0.5rem;
    }
    
    .insight-card {
        padding: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
    }
    
    /* Better mobile spacing for tips and alerts */
    .alert {
        margin-bottom: 1rem;
        padding: 0.75rem;
    }
    
    /* Mobile navbar fixes - ONLY apply on mobile */
    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .navbar-add-btn {
        max-width: 100% !important;
        margin: 0.5rem 0 !important;
    }
    
    .dropdown-menu {
        position: static !important;
        float: none !important;
        max-width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        margin-top: 0 !important;
    }
}