@font-face {
    font-family: 'iransansweb';
    src: url('../fonts/iransansweb.woff2') format('woff2');
}
@font-face {
    font-family: 'iransansweb_bold';
    src: url('../fonts/iransansweb_bold.woff2') format('woff2');
}
@font-face {
    font-family: 'iransansweb_medium';
    src: url('../fonts/iransansweb_medium.woff2') format('woff2');
}
@font-face {
    font-family: 'iransansonlynumeral';
    src: url('../fonts/iransansonlynumeral.woff') format('woff');
}


body, h1, h2, h3, h4, h5, h6, p, a, div, span, input, button, select, textarea {
    font-family: 'iransansweb_medium', sans-serif !important;
}

p, a, div, span, input, button, select, textarea {
    font-size: 20px !important;
    font-weight: 300 !important;
}



/*  budget indec */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Tahoma, Arial, sans-serif;
    background: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.nav-menu {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-btn {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.nav-btn-active {
    background: #11998e;
    color: white;
}

.nav-btn-inactive {
    background: #f5f5f5;
    color: #666;
}

    .nav-btn-inactive:hover {
        background: #e0e0e0;
    }

.summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.summary-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.summary-amount {
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0;
}

.income {
    color: #4CAF50;
}

.expense {
    color: #f44336;
}

.balance {
    color: #2196F3;
}

.summary-label {
    color: #999;
    font-size: 14px;
}

.section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f5f5f5;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-secondary {
    background: #2196F3;
    color: white;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border-right: 4px solid #ddd;
}

    .transaction-item.income {
        border-right-color: #4CAF50;
    }

    .transaction-item.expense {
        border-right-color: #f44336;
    }

.transaction-info h4 {
    margin-bottom: 5px;
}

.transaction-meta {
    font-size: 12px;
    color: #999;
}

.transaction-amount {
    font-size: 20px;
    font-weight: bold;
}

.budget-item {
    display: flex;
    justify-content: space-between;
    padding-right:5px;
    padding-left:5px;
    align-items: center;
    margin-bottom: 15px;
}

.budget-info {
    flex: 1;
    padding-right: 15px;
    padding-left: 15px;
}

.budget-category {
    font-weight: bold;
    margin-bottom: 5px;
}

.budget-progress {
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    margin: 5px 0;
    overflow: hidden;
}

.budget-progress-bar {
    height: 100%;
    transition: width 0.3s;
}

    .budget-progress-bar.normal {
        background: #4CAF50;
    }

    .budget-progress-bar.warning {
        background: #ff9800;
    }

    .budget-progress-bar.danger {
        background: #f44336;
    }

.budget-amounts {
    font-size: 13px;
    color: #666;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.month-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

    .month-selector select {
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
/*  budget index */

/*  Add Transaction  */
  * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: Tahoma, Arial, sans-serif; background: #f5f5f5; padding: 20px; }
        .container { max-width: 600px; margin: 0 auto; }
        .header { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); color: white; padding: 20px; border-radius: 8px; margin-bottom: 20px; }
        .form-card { background: white; padding: 30px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
        .form-group { margin-bottom: 20px; }
        label { display: block; margin-bottom: 5px; font-weight: bold; }
        input, select, textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-family: Tahoma; }
        textarea { resize: vertical; min-height: 60px; }
        .date-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
        .btn { padding: 12px 30px; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; }
        .btn-primary { background: #4CAF50; color: white; }
        .btn-secondary { background: #999; color: white; text-decoration: none; display: inline-block; }
        .actions { display: flex; gap: 10px; margin-top: 20px; }
        .type-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
        .type-option { padding: 15px; border: 2px solid #ddd; border-radius: 6px; cursor: pointer; text-align: center; transition: all 0.3s; }
        .type-option:hover { border-color: #11998e; }
        .type-option input[type="radio"] { display: none; }
        .type-option input[type="radio"]:checked + label { font-weight: bold; }
        .type-option.income { border-color: #4CAF50; background: #f1f8f4; }
        .type-option.expense { border-color: #f44336; background: #fef5f5; }
/*  Add Transaction  */

/* Set budget */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Tahoma, Arial, sans-serif;
    background: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

.header {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Tahoma;
}

.month-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-secondary {
    background: #999;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.info-box {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #2e7d32;
}
/* Set budget */

/* reminder create  */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Tahoma, Arial, sans-serif;
    background: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Tahoma;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.date-time-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.time-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-secondary {
    background: #999;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.helper-text {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}
/* reminder create  */

/*MAIN*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Tahoma, Arial, sans-serif;
    background: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content h1 {
    margin-bottom: 5px;
}

.header-content p {
    opacity: 0.9;
    font-size: 14px;
}

.user-menu {
    display: flex;
    gap: 10px;
    align-items: center;
}

.user-name {
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: transform 0.2s;
}

    .btn:hover {
        transform: translateY(-2px);
    }

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-warning {
    background: #ff9800;
    color: white;
}

.btn-secondary {
    background: #999;
    color: white;
}

.btn-outline {
    background: white;
    color: #667eea;
    border: 2px solid white;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.reminder-card {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

    .reminder-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

.reminder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reminder-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.reminder-time {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.reminder-desc {
    color: #444;
    margin: 10px 0;
    line-height: 1.6;
}

.reminder-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.badge-success {
    background: #4CAF50;
    color: white;
}

.badge-secondary {
    background: #999;
    color: white;
}

.badge-repeat {
    background: #2196F3;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    color: #999;
}

    .empty-state h3 {
        margin-bottom: 10px;
        color: #666;
    }

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}
/*MAIN*/








/* ==================== Responsive CSS - Add to ALL Views ====================
   Add this inside the <style> tag in each view file
   This makes the application fully responsive for mobile, tablet, and desktop
*/

/* Base responsive improvements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Tahoma, Arial, sans-serif;
    padding: 20px;
    min-height: 100vh;
}

/* Container responsive */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Responsive breakpoints */

/* Mobile First - Base styles (0-599px) */
@media screen and (max-width: 599px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 0 10px;
    }

    /* Header adjustments */
    .header {
        padding: 15px !important;
    }

        .header h1 {
            font-size: 20px !important;
        }

        .header p {
            font-size: 12px !important;
        }

    .header-content {
        width: 100%;
    }

    /* User menu - stack vertically on mobile */
    .user-menu {
        flex-direction: column !important;
        gap: 8px !important;
        width: 100%;
    }

    .user-name {
        width: 100%;
        text-align: center;
    }

    /* Navigation menu */
    .nav-menu {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
        padding: 12px 15px !important;
    }

    /* Summary cards - stack vertically */
    .summary-cards,
    .stats {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .summary-card,
    .stat-card {
        padding: 15px !important;
    }

    .summary-amount,
    .stat-number {
        font-size: 24px !important;
    }

    /* Section headers */
    .section-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px;
    }

    .section-title {
        font-size: 18px !important;
    }

    /* Toolbar */
    .toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    /* Buttons */
    .btn {
        width: 100%;
        padding: 12px 15px !important;
        font-size: 14px !important;
    }

    .actions {
        flex-direction: column !important;
        gap: 8px !important;
    }

    /* Forms */
    .form-card {
        padding: 20px !important;
    }

    .form-group {
        margin-bottom: 15px !important;
    }

    input, select, textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }

    /* Date and time groups - stack on mobile */
    .date-time-group,
    .time-group,
    .date-group,
    .month-group {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    /* Reminder cards */
    .reminder-card {
        padding: 12px !important;
    }

    .reminder-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px;
    }

    .reminder-title {
        font-size: 16px !important;
    }

    .reminder-actions {
        flex-direction: column !important;
        width: 100%;
    }

    /* Transaction items */
    .transaction-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px;
    }

    .transaction-amount {
        font-size: 18px !important;
    }

    /* Budget items */
    .budget-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px;
    }

    .budget-info {
        width: 100%;
    }

    /* Login/Register forms */
    .login-container,
    .register-container {
        padding: 25px !important;
        margin: 10px;
    }

    .logo h1 {
        font-size: 24px !important;
    }

    /* Type selector */
    .type-selector {
        grid-template-columns: 1fr !important;
    }

    /* Month selector */
    .month-selector {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

        .month-selector select {
            width: 100%;
        }

    /* Hide less important info on mobile */
    .helper-text {
        font-size: 11px !important;
    }

    /* Table-like structures */
    table {
        font-size: 12px !important;
    }
}

/* Tablet - Portrait (600-899px) */
@media screen and (min-width: 600px) and (max-width: 899px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }

    /* Summary cards - 2 columns */
    .summary-cards,
    .stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Forms - keep 2 column layouts */
    .date-time-group {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .time-group,
    .month-group {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Navigation - horizontal */
    .nav-menu {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    /* User menu - keep horizontal */
    .user-menu {
        flex-direction: row !important;
        flex-wrap: wrap;
    }
}

/* Tablet - Landscape & Small Desktop (900-1199px) */
@media screen and (min-width: 900px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    /* Summary cards - 3 columns */
    .summary-cards,
    .stats {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Large Desktop (1200px+) */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }

    /* Optimal layout for large screens */
    .summary-cards,
    .stats {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 15px !important;
    }

    .section {
        padding: 15px !important;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn,
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }

    input,
    select,
    textarea {
        min-height: 44px;
    }

    /* Remove hover effects on touch devices */
    .btn:hover,
    .reminder-card:hover,
    .transaction-item:hover {
        transform: none !important;
    }
}

/* Print styles */
@media print {
    body {
        background: white !important;
    }

    .header,
    .nav-menu,
    .toolbar,
    .btn,
    button,
    .user-menu {
        display: none !important;
    }

    .section {
        box-shadow: none !important;
        page-break-inside: avoid;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor !important;
    }

    input,
    select,
    textarea {
        border: 2px solid #000 !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode
    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .section,
    .form-card,
    .reminder-card {
        background: #2a2a2a !important;
        color: #e0e0e0;
    }
    
    input,
    select,
    textarea {
        background: #333 !important;
        color: #e0e0e0 !important;
        border-color: #555 !important;
    }
    */
}

/* Additional responsive utilities */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media screen and (max-width: 599px) {
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }
}

/* Responsive text sizes */
.responsive-text {
    font-size: clamp(14px, 2vw, 18px);
}

.responsive-title {
    font-size: clamp(20px, 4vw, 32px);
}

/* Flexible images */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive iframes (for embedded content) */
iframe {
    max-width: 100%;
}
