/* --- Google Fonts Import ---
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- Base Body Styles --- 
body {
    font-family: 'Inter', sans-serif;
    color: #1e293b; /* slate-800 **
    overflow-x: hidden; /* Prevent horizontal scroll from background blobs *
}

/* --- Aesthetic Animated Aurora Background --- *
.aurora-background {
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 50%, #f0f4f8 100%);
    background-size: 200% 200%;
    animation: gradient-flow 15s ease infinite;
    position: relative;
    overflow: hidden; /* Contains the pseudo-elements **
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Soft floating blobs for a more dynamic feel **
.aurora-background::before,
.aurora-background::after {
    content: '';
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.aurora-background::before {
    width: 400px;
    height: 400px;
    background-color: #a7c5eb; /* A soft blue **
    top: -10%;
    left: -10%;
    animation: float 20s infinite alternate;
}

.aurora-background::after {
    width: 500px;
    height: 500px;
    background-color: #d6d3e3; /* A soft purple/grey **
    bottom: -15%;
    right: -15%;
    animation: float 25s infinite alternate;
}

@keyframes float {
    0% { transform: translateY(20px) translateX(-20px) rotate(0deg); }
    100% { transform: translateY(-20px) translateX(20px) rotate(180deg); }
}

/* This container holds all content above the background **
.main-content {
    position: relative;
    z-index: 1;
}

/* --- Header & Hero Section --- **
.glassmorphism-header {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-text {
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}


/* --- Custom Component Styles --- **

/* Enhanced Glow effect for the main CTA button **
.glow-button {
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.glow-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px -10px rgba(96, 165, 250, 0.7);
}

.glow-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0.5rem; /* Match button's rounded-lg **
    background: radial-gradient(circle, rgba(96, 165, 250, 0.5), transparent 75%);
    transform: scale(1.3);
    filter: blur(25px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: -1;
}

.glow-button:hover::before {
    opacity: 1;
}

/* Custom style for the drop zone when a file is being dragged over it **
#drop-zone.drop-zone-active {
    border-color: #3b82f6; /* blue-500 **
    background-color: #eff6ff; /* blue-50 **
    transform: scale(1.02);
}

/* --- Refined Upload Section Effects --- **
.upload-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.upload-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
} **/
.glassmorphism-header {
    background-color: #ffffff9c;
    backdrop-filter: blur(10px);
}

#bill-section {
    border-radius: 10px;
    padding: 1rem;
    margin-top: 2rem;
    box-shadow: 0px -3px 20px 0px rgb(0 0 0 / 15%);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);

    /* border-radius: 10px;
    padding: 1rem;
    box-shadow: 0px -3px 20px 0px rgb(0 0 0 / 15%); **/
}

.job {
    margin-bottom: 2rem;
    border: 2px dashed #0000003d;
    border-radius: 17px;
    padding: 0.5rem;

}

.total {
    box-shadow: 0px -3px 20px 0px rgb(0 0 0 / 15%);
    padding: 0.5rem;
    border-radius: 10px;
}

#iframe {
    border-radius: 10px;
}

.pdf-container {
    max-height: 600px;
    /* Optional: limit height */
    overflow-y: auto;
}

.pdf-container canvas {
    display: block;
    margin-bottom: 10px;
    width: 100% !important;
    /* scale canvas width to container */
    height: auto !important;
    /* maintain aspect ratio */
}


.preview {
    padding: 1rem;
    background: #282828;
    border-radius: 10px;
}


.pdf-container {
    width: 100%;
    height: 100%;
    /* fill parent */
    overflow: auto;
    /* enable scroll if content overflows */
}

.pdf-iframe {
    width: 100%;
    min-height: 100%;
    border: none;
}