/* Basic Reset and Variables */
:root {
    --primary-color: #007BFF;
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-color: #343a40;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* ------------------------------------------------------------------ */
/* Header & Navigation */
/* ------------------------------------------------------------------ */
.header {
    background-color: var(--card-background);
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li a {
    display: block;
    padding: 10px 15px;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s, background-color 0.3s;
    border-radius: var(--border-radius);
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--card-background);
    background-color: var(--primary-color);
}

.nav-toggle-label {
    display: none; /* Hidden on desktop */
}

/* ------------------------------------------------------------------ */
/* Hero & Tools */
/* ------------------------------------------------------------------ */
.hero-section {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--primary-color);
    color: white;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.tool-section {
    background-color: var(--card-background);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.tool-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.tool-box {
    padding: 20px;
    border: 2px dashed var(--secondary-color);
    border-radius: var(--border-radius);
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.upload-btn, .action-btn {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.upload-btn {
    background-color: var(--primary-color);
    color: white;
}

.upload-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.action-btn {
    background-color: var(--accent-color);
    color: white;
    width: 100%;
    max-width: 300px;
}

.action-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.action-btn:not(:disabled):hover {
    background-color: #1e7e34;
    transform: scale(1.05);
}

.file-list-preview {
    min-height: 50px;
    padding: 10px;
    width: 100%;
    text-align: left;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    color: var(--secondary-color);
}

.section-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0));
    margin: 40px 0;
}

/* ------------------------------------------------------------------ */
/* Ad Slots */
/* ------------------------------------------------------------------ */
.ad-slot {
    text-align: center;
    padding: 15px;
    background-color: #fff3cd; /* Light warning color for visibility */
    border: 1px solid #ffeeba;
    margin: 20px 0;
    color: #856404;
    border-radius: var(--border-radius);
}

/* ------------------------------------------------------------------ */
/* Footer (Modern with Hover Animation) */
/* ------------------------------------------------------------------ */
.footer {
    background-color: var(--text-color); /* Dark background */
    color: white;
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer h3, .footer h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.footer-links-group a, .footer-contact p a {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    transition: color 0.3s, transform 0.3s; /* Animation */
    text-decoration: none;
}

/* Hover Animation and Color Change */
.footer-links-group a:hover, .footer-contact p a:hover {
    color: var(--accent-color); /* Color change */
    transform: translateX(5px); /* Animation: slight slide */
}

/* ------------------------------------------------------------------ */
/* Mobile Responsiveness (Media Queries) */
/* ------------------------------------------------------------------ */
@media (max-width: 768px) {
    
    /* Navigation Toggle */
    .nav-toggle-label {
        display: block;
        cursor: pointer;
        padding: 5px;
    }
    
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: var(--text-color);
        height: 3px;
        width: 25px;
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
    }

    .nav-toggle-label span::before { content: ""; position: absolute; top: 0; }
    .nav-toggle-label span::after { content: ""; position: absolute; bottom: 0; }

    .nav-toggle-label span {
        position: relative;
        transform: translate(-100px); /* Hide the middle bar */
        background: transparent;
    }
    .nav-toggle-label span::before { transform: rotate(45deg) translate(7px, 7px); }
    .nav-toggle-label span::after { transform: rotate(-45deg) translate(7px, -7px); }

    .nav-toggle:checked ~ .nav-links {
        transform: translateX(0);
    }
    
    .nav-links {
        position: absolute;
        top: 60px; /* Below the header */
        right: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--card-background);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 100;
        padding: 10px 0;
    }
    
    .nav-links li a {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }

    /* Footer Responsiveness */
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* Two columns on mobile */
    }
    
    .footer-brand {
        grid-column: span 2; /* Full width for brand on small screens */
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
}

/* ------------------------------------------------------------------ */
/* Generic Content Page Styling (for about.html, etc.) */
/* ------------------------------------------------------------------ */
.content-page {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.content-page h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}
.content-page p, .content-page ul {
    margin-bottom: 15px;
}
/* Add to your existing style.css */

.drag-drop-zone {
    width: 100%;
    padding: 30px 20px;
    border: 3px dashed var(--primary-color);
    border-radius: var(--border-radius);
    text-align: center;
    transition: background-color 0.3s, border-color 0.3s;
    background-color: #f0f8ff; /* Light blue background */
    cursor: pointer;
}

.drag-drop-zone p {
    margin: 5px 0;
    color: var(--secondary-color);
}

.drag-drop-zone .upload-btn {
    /* Ensure the button looks correct inside the D&D zone */
    margin-top: 15px;
}

/* Style when a file is being dragged over it */
.drag-drop-zone.dragover {
    background-color: #e6f7ff;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}