 /* Add Navbar Styles */
 .navbar {
    background: white;
    padding: 0.75rem 1.5rem; /* Reduced from 1rem 2rem */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

/* Adjust body margin for fixed navbar */
body {
    margin-top: 80px;
}

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --background: #f8fafc;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    background: var(--background);
}

.container {
    background: white;
    padding: 1.5rem; /* Reduced from 2rem */
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #1e293b;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.drop-zone {
    border: 2px dashed #cbd5e1;
    padding: 3rem 1rem;
    text-align: center;
    margin: 1rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
}

.drop-zone.dragover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(99, 102, 241, 0.1) 10px,
        rgba(99, 102, 241, 0.1) 20px
    );
}

.drop-zone i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.drop-zone:hover i {
    transform: translateY(-3px);
}

#pdf-list {
    margin: 1.5rem 0;
}

#merge-btn {
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

#merge-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

#merge-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

.file-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    margin: 0.5rem 0;
    border-radius: 0.5rem;
    background: white;
    transition: all 0.3s ease;
}

.file-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.file-handle {
    cursor: move;
    padding: 0 1rem;
    color: #94a3b8;
}

.file-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.file-name {
    font-weight: 500;
    color: #1e293b;
}

.file-size {
    font-size: 0.875rem;
    color: #64748b;
}

.remove-btn {
    background: none;
    color: var(--danger);
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    margin-left: 1rem;
    transition: all 0.3s ease;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.remove-btn:hover {
    background: #fee2e2;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.toast {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast.visible {
    opacity: 1;
    transform: translate(-50%, -1rem);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}


 /* Better Mobile Padding */
@media (max-width: 768px) {
.navbar {
    padding: 0.5rem 1rem;
}

.container {
    padding: 1rem;
}

h1 {
    font-size: 2rem; /* Smaller heading on mobile */
    margin-bottom: 1.5rem;
}
}

/* Improved Body Margin */
body {
margin-top: 70px; /* Reduced from 80px for better spacing */
}

/* Adjusted Drop Zone Padding */
.drop-zone {
padding: 2rem 1rem; /* Reduced from 3rem 1rem */
}

/* Footer Padding Adjustment */
footer[role="contentinfo"] {
margin-top: 1.5rem; /* Reduced from 2rem */
padding: 1rem;
}