* { 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    overflow-x: hidden;
    max-width: 100%;

}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #f5f5f5;
    padding: 20px;
    overflow-x: hidden;
    width: 100%;
    position: relative;

}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.wireframe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 1400px) {
    .wireframe-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.phone-frame {
    height: 700px;
    background: #fff;
    border-radius: 30px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 8px solid #333;
    position: relative;
    z-index: 10;
    
}

.screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fafafa;
    border-radius: 15px;
    
}

.status-bar {
    background: #fff;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.header {
    background: #4CAF50;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

.content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.nav-bar {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
}

.nav-item {
    text-align: center;
    cursor: pointer;
    padding: 5px;
    color: #999;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-item.active {
    color: #fff;
}

.nav-icon {
    width: 50px;
    height: 50px;
    background: #e0e0e0;
    border-radius: 50%;
    margin: 0 auto 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-item.active .nav-icon {
    background: #4CAF50;
    color: white;
}

.nav-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Home */
.budget-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
}

.budget-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: #4CAF50;
    border-radius: 4px;
}

.progress-fill.warning {
    background: #FF9800;
}

.progress-fill.danger {
    background: #F44336;
}

.budget-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}

.summary-box {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    border: 2px solid #e0e0e0;
}

.summary-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.summary-value {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

/* Pie chart */
.pie-chart-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 18px auto 24px;
    width: 100%;
    max-width: 180px;
}

#budgetPieChart {
    display: block;
}

.summary-divider {
    width: 40px;
    height: 2px;
    background: #e0e0e059;
    margin: 12px auto 10px;
    border-radius: 2px;
}

.pie-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    margin-top: 10px;
    padding: 0 5px;
}

.pie-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #666;
}

.pie-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex-shrink: 0;
}

.alert-box {
    background: #FFF3E0;
    border-left: 4px solid #FF9800;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
}

/* Add Purchase */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: white;
}

.form-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.calculated-box {
    background: #E8F5E9;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.calc-row.total {
    font-weight: bold;
    font-size: 18px;
    padding-top: 8px;
    border-top: 2px solid #4CAF50;
    margin-top: 8px;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.btn-secondary {
    width: 100%;
    padding: 15px;
    background: #fff;
    color: #4CAF50;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

/* Budget */
.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.budget-list-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.budget-list-info h3 {
    font-size: 15px;
    margin-bottom: 5px;
}

.budget-list-details {
    font-size: 12px;
    color: #666;
}

.budget-list-amount {
    text-align: right;
}

.amount-spent {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.amount-limit {
    font-size: 12px;
    color: #999;
}

.add-button {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.wireframe-title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 15px;
}

.mini-icon {
    width: 16px;
    height: 16px;
    background: #ddd;
    border-radius: 3px;
    display: inline-block;
    margin-right: 8px;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
        
.modal.active {
    display: flex;
}
        
.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}
        
.modal-header {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}
        
.emoji-picker {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
        
.emoji-option {
    font-size: 28px;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}
        
.emoji-option:hover,
.emoji-option.selected {
    border-color: #4CAF50;
    background: #E8F5E9;
    transform: scale(1.1);
}
        
.close-modal {
    float: right;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}
  
/*Index, Createaccount, Passreset*/
.login-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    
}
body.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
}
        
.confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
        
.dollar {
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    animation: fall linear forwards;
    opacity: 0;
}
        
@keyframes fall {
    0% {
    opacity: 1;
    transform: translateY(-100px) rotate(0deg);
    }
    100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg);
    }
}
        
.logo-container {
    text-align: center;
    overflow: hidden;
}
        
.logo {
    font-size: 64px;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}
        
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}
        
.app-name {
    font-size: 32px;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}
        
.tagline {
    color: #666;
    font-size: 14px;
}
        
.welcome-text {
    text-align: center;
    margin-bottom: 30px;
}
        
.welcome-text h2 {
    color: #333;
    margin-bottom: 10px;
}
        
.welcome-text p {
    color: #666;
    font-size: 14px;
}
        
        
.password-strength {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}
        
.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s;
    border-radius: 2px;
}
        
.strength-weak {
    background: #F44336;
    width: 33%;
}
        
.strength-medium {
    background: #FF9800;
    width: 66%;
}
        
.strength-strong {
    background: #4CAF50;
    width: 100%;
}
        
.auto-update-badge {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    margin-left: 5px;
}
/*Price Tracker*/      
.price-change {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 5px;
}
        
.price-up {
    background: #FFEBEE;
    color: #F44336;
}
        
.price-down {
    background: #E8F5E9;
    color: #4CAF50;
}
.menu-wrapper {
    position: relative;
    display: inline-block;
}

.menu-dots {
    cursor: pointer;
    font-weight: bold;
}

.menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
}

.menu-dropdown div {
    padding: 10px;
    cursor: pointer;
}

.menu-dropdown div:hover {
    background: #f5f5f5;
}
.menu-wrapper { position: relative; display: inline-block; }
.menu-dots { cursor: pointer; font-weight: bold; }
.menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px 0;
    min-width: 120px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 999;
}
.menu-dropdown div {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}
.menu-dropdown div:hover { background:#f2f2f2; }
.auto-update-badge {
    background:#4CAF50;
    color:white;
    font-size:10px;
    padding:2px 6px;
    border-radius:6px;
    margin-left:6px;
}