:root {
    --primary: #FF69B4;
    /* Hot Pink */
    --secondary: #FFB6C1;
    /* Light Pink */
    --accent: #FFD700;
    /* Gold */
    --background: #FFF5F7;
    /* Rose White */
    --dark: #2D3436;
    --text: #2D3436;
    --glass: rgba(255, 255, 255, 0.7);
    --shadow: 0 8px 32px 0 rgba(255, 105, 180, 0.15);
    --border: rgba(255, 255, 255, 0.18);
    --success: #00B894;
    --error: #FF7675;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: 70px;
    /* Space for bottom nav */
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin: 15px;
    padding: 20px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1,
h2,
h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

button,
.btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    width: 100%;
    margin: 10px 0;
}

button:active {
    transform: scale(0.98);
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
}

input,
select {
    width: 100%;
    padding: 12px;
    border: 2px solid #FFE4E1;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: var(--primary);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 5px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-item {
    text-align: center;
    color: #A0A0A0;
    text-decoration: none;
    font-size: 0.7rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 3px;
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    padding: 15px;
    border-radius: 15px;
    color: white;
}

.stat-item.income {
    background: linear-gradient(135deg, #00B894, #55EFC4);
}

.stat-item.expense {
    background: linear-gradient(135deg, #FF7675, #D63031);
}

/* List styles */
.list-item {
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid var(--primary);
}

.qty-badge {
    background: var(--secondary);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
}

/* Form Containers */
.form-container {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 10px 25px rgba(255, 105, 180, 0.4);
    z-index: 900;
    text-decoration: none;
    transition: transform 0.2s;
}

.fab:active {
    transform: scale(0.9);
}

/* Enhanced Lists/Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th {
    text-align: left;
    color: var(--primary);
    font-size: 0.8rem;
    padding: 10px;
    border-bottom: 2px solid #FFE4E1;
}

td {
    padding: 12px 10px;
    border-bottom: 1px solid #FFF0F5;
    font-size: 0.9rem;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.back-btn {
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    margin-bottom: 15px;
}

.secondary-btn {
    background: #e0e0e0;
    color: #333;
    box-shadow: none;
}

/* Cost and Actions Styles */
.cost-badge {
    background: #f0f0f0;
    color: #555;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--error);
}

.text-primary {
    color: var(--primary);
}

.btn-delete {
    background: none;
    border: none;
    color: var(--error);
    padding: 5px;
    width: auto;
    box-shadow: none;
    margin: 0;
    cursor: pointer;
}

.btn-edit {
    background: none;
    border: none;
    color: #4a90e2;
    padding: 5px;
    width: auto;
    box-shadow: none;
    margin: 0;
    cursor: pointer;
}

.item-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cost-summary {
    background: rgba(255, 105, 180, 0.05);
    border: 1px dashed var(--primary);
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
}

.info-small {
    font-size: 0.75rem;
    color: #888;
    display: block;
}