:root {
    --primary: #ff0084;      /* Updated to your hot pink save button color */
    --primary-hover: #e00075;
    --bg: #f8f9fa;
    --card-bg: rgba(255, 255, 255, 0.95); /* Crisp white surface with slight transparency */
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    
    /* 1. Set your background wallpaper image */
    background-image: url('https://images.unsplash.com/photo-1575543483595-568b7afb6b9e?q=80&w=1335&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

/* 2. Seamless blur overlay layer */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* For Safari engine support */
    
    background-color: rgba(255, 255, 255, 0.15); /* Light balance tint */
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 500px;
    text-align: center;
    padding: 20px 10px; /* Gives padding around smaller screens */
}

/* 3. Upgraded Cards to make them POP over the blur */
.card, .analytics-section {
    background: var(--card-bg) !important;
    padding: 30px !important;              /* Generous breathing space inside panels */
    border-radius: 16px !important;         /* Sleek, high-end rounded corners */
    margin-bottom: 25px !important;         /* Even distribution space between cards */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important; /* Soft depth shadow layer */
    text-align: left;
    box-sizing: border-box;
}

/* Form layouts */
.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

select, input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
    background-color: #fff;
    transition: border-color 0.2s;
}

select:focus, input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Interactive control actions */
button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: transform 0.1s, background-color 0.2s;
}

button:active {
    transform: scale(0.98); /* Little responsive push down click animation */
}

.btn-primary { 
    background-color: var(--primary); 
    color: white; 
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary { 
    background-color: #4b5563; 
    color: white; 
    width: auto; 
    padding: 8px 16px;
}

.btn-success { 
    background-color: var(--primary); 
    color: white; 
}

/* Custom styling for your 1 Week / 1 Month interactive buttons */
#btn-week, #btn-month {
    background-color: #e5e7eb;
    color: #374151;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.2s;
}

#btn-week:hover, #btn-month:hover {
    background-color: #d1d5db;
}

.hidden {
    display: none !important;
}

/* Clean up custom history blocks */
.history-item {
    padding: 14px;
    background: rgba(249, 250, 251, 0.7);
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    font-size: 14px;
}

.history-item:last-child {
    margin-bottom: 0;
}