/* Overall Page Styling */
body {
    margin: 0;
    padding: 0;
    background-color: #121212; /* Halka soft background */
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr; 
    /* SEO scrollable karne ke liye height aur overflow hata diya gaya hai */
    min-height: 100vh;
}

/* Ad Spaces */
.ad-space-left, .ad-space-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Workspace */
.main-workspace {
    background-color: #ffffff; 
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    /* SEO scrollable karne ke liye isko bhi height free kiya gaya hai */
    min-height: 100vh;
}

.site-header {
    background-color: #ffffff; 
    text-align: center;
    padding: 20px 0;
    margin: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Soft shadow bottom me */
    z-index: 10;
}
.site-header h2 { 
    margin: 0; 
    font-size: 26px; 
    font-weight: 700;
    letter-spacing: 1px; 
    /* Gradient Text Effect */
    background: linear-gradient(45deg, #007bff, #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Upload Box */
.upload-container {
    padding: 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.upload-box {
    display: block;
    border: 2px dashed #a1c4fd;
    border-radius: 15px; /* Thoda zyada gol */
    padding: 35px;
    text-align: center;
    background: #f8fbff;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 10px rgba(0, 123, 255, 0.05);
}
.upload-box:hover { 
    background: #eef5ff; 
    border-color: #007bff;
    transform: translateY(-2px); /* Upar uthne ka effect */
}

.upload-icon { font-size: 40px; margin-bottom: 10px; }
.upload-box p { margin: 0; color: #333; font-weight: bold; font-size: 16px; }

/* Naye Action Buttons */
.action-btn, .generate-pdf-btn {
    background: linear-gradient(135deg, #007bff, #0056b3); /* Gradient color */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    margin: 0 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3); /* Glow shadow */
}

.action-btn:hover, .generate-pdf-btn:hover { 
    background: linear-gradient(135deg, #0056b3, #003d82);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
    transform: translateY(-2px); /* Click feel ke liye */
}

.generate-pdf-btn {
    padding: 15px 50px;
    font-size: 18px;
    border-radius: 30px; /* Bada pill-shape button */
    white-space: nowrap; 
    width: auto; 
    display: inline-block; 
}

/* Preview Section */
.preview-section {
    flex-grow: 1;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    grid-auto-rows: max-content;
    gap: 15px;
    overflow-y: auto;
    background-color: #ffffff;
    /* Preview area ko ek height deni hogi ab jab main height free ho gayi hai */
    max-height: 450px;
}

.preview-section::-webkit-scrollbar { width: 8px; }
.preview-section::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.preview-section::-webkit-scrollbar-thumb { background: #888; border-radius: 10px; }
.preview-section::-webkit-scrollbar-thumb:hover { background: #555; }

/* Image Container */
.image-container {
    position: relative;
    aspect-ratio: 1; 
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: grab; 
    background-color: #eee;
    overflow: hidden; /* Bahar nikalne se rokne ke liye */
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease; /* Smoothness add ki */
}

.image-container:hover img {
    transform: scale(1.08); /* Hover par thoda zoom hoga */
}

/* Image Number Badge */
.image-number {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

/* Cut / Delete Button */
.delete-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.delete-btn:hover { background-color: #ff1a1a; }

/* Footer */
.workspace-footer {
    padding: 15px;
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

/* Legal Footer Links */
.legal-footer {
    text-align: center;
    padding: 15px;
    background-color: #f1f8ff;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
}

.legal-footer a {
    color: #555;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 600;
    transition: color 0.2s;
}

.legal-footer a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* --- YAHAN SE NAYA SEO SECTION DESIGN HAI --- */
.seo-content-section {
    background-color: #ffffff;
    padding: 40px;
    border-top: 2px dashed #e0e0e0;
    color: #444;
    line-height: 1.8;
}

.seo-content-section h1, .seo-content-section h2, .seo-content-section h3 {
    color: #0056b3;
    margin-top: 30px;
    margin-bottom: 15px;
}

.seo-content-section h1 {
    font-size: 28px;
    border-bottom: 2px solid #007bff;
    display: inline-block;
    padding-bottom: 5px;
}

.seo-content-section h2 {
    font-size: 22px;
}

.seo-content-section p {
    font-size: 15px;
    margin-bottom: 20px;
}

.seo-faq-box {
    background: #f8fbff;
    border-left: 4px solid #007bff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
}

.seo-faq-box strong {
    color: #222;
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}