/* --- VARIABLES --- */
:root {
    --color-primary: #4A90E2;
    --color-secondary: #50E3C2;
    --color-accent: #F5A623;
    --color-background: #F4F7F9;
    --color-text: #333333;
    --color-light-gray: #EAEAEA;
    --color-white: #FFFFFF;
    --font-family: 'Poppins', sans-serif;
    --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-deep: 0 10px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
}

/* --- GLOBAL STYLES --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
}

header {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
}

main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
}

.container {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    width: 100%;
    max-width: 500px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-deep);
}

/* --- COMPONENT-SPECIFIC PLACEHOLDERS --- */
/* These will style the content inside the web components */

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-light-gray);
    padding-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--color-light-gray);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
}

button {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #357ABD; /* Darker primary */
    transform: translateY(-2px);
}

button.secondary {
    background: var(--color-secondary);
}

button.secondary:hover {
    background: #40C0A3; /* Darker secondary */
}

button:disabled {
    background-color: #A0A0A0;
    cursor: not-allowed;
}

.balance-display, .history-log {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #F9FAFB;
    border-radius: 8px;
    border: 2px solid var(--color-light-gray);
}

.balance-display p {
    font-size: 1.2rem;
    font-weight: 600;
}

.balance-display .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.history-log ul {
    list-style-type: none;
    max-height: 200px;
    overflow-y: auto;
}

.history-log li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-light-gray);
}
.history-log li:last-child {
    border-bottom: none;
}