/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #222222;
    --secondary-color: #f1c40f;
    --accent-color: #e74c3c;
    --light-bg: #444444;
    --dark-bg: #111111;
    --text-color: #ffffff;
    --light-text: #f8f9fa;
    --border-radius: 4px;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    --transition: all 0.2s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--dark-bg);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 0;
    background: linear-gradient(135deg, #333333 0%, #111111 100%);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.03),
        rgba(255, 255, 255, 0.03) 10px,
        rgba(255, 255, 255, 0.04) 10px,
        rgba(255, 255, 255, 0.04) 20px
    );
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.logo-container {
    margin-right: 15px;
}

.header-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    animation: pulse 2s infinite alternate;
}

.title-container {
    text-align: left;
}

header h1 {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tagline {
    color: var(--light-text);
    font-size: 0.9rem;
    opacity: 0.8;
    letter-spacing: 1px;
}

@keyframes pulse {
    from {
        transform: scale(1);
        opacity: 0.9;
    }
    to {
        transform: scale(1.05);
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    .logo-container {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .title-container {
        text-align: center;
    }
}

/* Section Styles */
section {
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 15px;
    margin-bottom: 20px;
}

section h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--light-bg);
    font-size: 1.3rem;
}

/* Budget Section */
.budget-display {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.budget-card {
    flex: 1;
    min-width: 150px;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: var(--transition);
    background: linear-gradient(to bottom, #1a1a1a, var(--dark-bg));
    border-left: 3px solid;
    position: relative;
    overflow: hidden;
}

.budget-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.05) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.05) 75%, 
        transparent 75%, 
        transparent);
    background-size: 4px 4px;
    opacity: 0.3;
    z-index: 0;
}

.budget-card > * {
    position: relative;
    z-index: 1;
}

.budget-card:nth-child(1) {
    color: var(--secondary-color);
    border-left-color: var(--secondary-color);
}

.budget-card:nth-child(2) {
    color: var(--accent-color);
    border-left-color: var(--accent-color);
}

.budget-card:nth-child(3) {
    color: #2ecc71;
    border-left-color: #2ecc71;
}

.budget-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.budget-card h3 {
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.budget-card p {
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.budget-controls {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.input-group {
    flex: 1;
    min-width: 150px;
}

label {
    display: block;
    margin-bottom: 4px;
    font-weight: 400;
    color: var(--light-text);
    font-size: 0.9rem;
}

input, select {
    width: 100%;
    padding: 8px;
    border: 1px solid #444;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    background-color: var(--dark-bg);
    color: var(--light-text);
    transition: var(--transition);
}

input:focus, select:focus {
    border-color: var(--secondary-color);
    outline: none;
}

input::placeholder {
    color: #777;
}

/* Button Styles */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    opacity: 0.9;
}

.btn.primary {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}

.btn.secondary {
    background-color: var(--light-bg);
    color: var(--light-text);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Expense Table */
.expense-table-container {
    overflow-x: auto;
}

.expense-table {
    width: 100%;
    border-collapse: collapse;
}

.expense-table th,
.expense-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #333;
    font-size: 0.9rem;
}

.expense-table th {
    background-color: var(--dark-bg);
    color: var(--secondary-color);
}

.expense-table tbody tr {
    transition: var(--transition);
}

.expense-table tbody tr:hover {
    background-color: rgba(50, 50, 50, 0.3);
}

.expense-table .action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 20px;
    padding: 10px 0;
    color: #666;
    font-size: 0.8rem;
}

/* Responsiveness */
@media screen and (max-width: 768px) {
    .budget-display {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .input-group {
        width: 100%;
    }
} 