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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.tabs {
    display: flex;
    margin-bottom: 30px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: #667eea;
    color: white;
}

.tab-button:hover:not(.active) {
    background: #f8f9fa;
}

.tab-content {
    display: none;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
    display: block;
}

.hidden {
    display: none !important;
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    height: 100%;
    width: 100%;
}

.login-form .action-card {
    max-width: 300px;
    width: 300px;
    text-align: center;
    margin: 0 auto;
}

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

.logout-button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.logout-button:hover {
    background: #c82333;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #667eea;
    font-size: 2.5em;
}

.dashboard-header h1 {
    margin-bottom: 0;
    text-align: left;
}

.balance-display {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    color: white;
}

.balance-amount {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.balance-label {
    font-size: 1.2em;
    opacity: 0.9;
}

.next-allowance {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #666;
}

.parent-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.action-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.action-card h3 {
    margin-bottom: 15px;
    color: #667eea;
}

.action-card input,
.action-card select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.action-card button {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.action-card button:hover {
    background: #5a6fd8;
}

.wishlist-section {
    margin-top: 30px;
}

.wishlist-section h3 {
    margin-bottom: 15px;
    color: #667eea;
}

.wishlist-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.wishlist-form input {
    flex: 1;
    min-width: 150px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.wishlist-form button {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.wishlist-form button:hover {
    background: #5a6fd8;
}

.wishlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
}

.wishlist-info {
    flex: 1;
}

.wishlist-name {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 5px;
}

.wishlist-amount {
    color: #667eea;
    font-weight: 600;
}

.wishlist-progress {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.wishlist-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.wishlist-remove:hover {
    background: #c82333;
}

.transaction-history {
    margin-top: 30px;
}

.transaction-history h3 {
    margin-bottom: 15px;
    color: #667eea;
}

.transaction {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.transaction.deduction {
    border-left-color: #dc3545;
}

.transaction.addition {
    border-left-color: #28a745;
}

.transaction-info {
    flex: 1;
}

.transaction-amount {
    font-weight: bold;
    font-size: 1.1em;
}

.transaction-amount.positive {
    color: #28a745;
}

.transaction-amount.negative {
    color: #dc3545;
}

.transaction-date {
    font-size: 0.9em;
    color: #666;
}

.transaction-reason {
    font-size: 0.9em;
    color: #888;
    margin-top: 5px;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .balance-amount {
        font-size: 2em;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .parent-actions {
        grid-template-columns: 1fr;
    }
    
    .wishlist-form {
        flex-direction: column;
    }
    
    .wishlist-form input {
        min-width: unset;
    }
}