/* 
   PDF TOOLS - EXPERT WEB TOOLS
   Theme: 2025 Glassmorphism
*/

/* --- Fonts --- */
@font-face { font-family: 'Inter'; src: url('/fonts/inter-v20-latin-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Orbitron'; src: url('/fonts/orbitron-v35-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Roboto Mono'; src: url('/fonts/roboto-mono-v31-latin-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
    --bg-dark: #0a0a0f;
    --primary-accent: #3b82f6;
    --secondary-accent: #8b5cf6;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --card-bg: rgba(25, 25, 35, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(255, 255, 255, 0.05);
    
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'Roboto Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.background-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.08) 0%, rgba(10, 10, 15, 0) 50%);
    z-index: -1;
    pointer-events: none;
}

/* --- Header --- */
.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}
.back-btn {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}
.back-btn:hover { color: var(--primary-accent); }
.logo { font-family: var(--font-heading); font-size: 1.2rem; }
.logo span { color: var(--primary-accent); }

/* --- Main Layout --- */
.main-content {
    flex-grow: 1;
    padding: 2rem 5%;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.tool-intro { text-align: center; margin-bottom: 2rem; }
.tool-intro h1 { font-family: var(--font-heading); margin-bottom: 0.5rem; font-size: 2rem; }
.tool-intro p { color: var(--text-muted); }

/* Tabs */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tab-btn:hover { background: rgba(255,255,255,0.05); color: #fff; }
.tab-btn.active { background: var(--primary-accent); color: #fff; border-color: var(--primary-accent); box-shadow: 0 0 15px rgba(59, 130, 246, 0.3); }

/* Tool Panes */
.tool-pane { display: none; animation: fadeIn 0.3s ease; }
.tool-pane.active { display: flex; flex-direction: column; gap: 1.5rem; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Drop Zone */
.drop-area {
    background: var(--card-bg);
    border: 2px dashed var(--card-border);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.drop-area:hover, .drop-area.dragover { border-color: var(--primary-accent); background: rgba(59, 130, 246, 0.05); }

.upload-icon { font-size: 3rem; color: var(--secondary-accent); margin-bottom: 1rem; }
.drop-area h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 0.5rem; }
.drop-area p { color: var(--text-muted); font-size: 0.9rem; }

/* File List */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-list-item {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--card-border);
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
}
.file-list-item.dragging { opacity: 0.5; background: var(--input-bg); }

.file-name { color: #fff; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.file-name i { color: #ef4444; } /* PDF Icon color */

.remove-file-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
}
.remove-file-btn:hover { color: #ef4444; }

/* Action Button */
.primary-btn {
    width: 100%;
    background: var(--primary-accent);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 1rem;
}
.primary-btn:hover:not(:disabled) { background: #2563eb; }
.primary-btn:disabled { background: #475569; cursor: not-allowed; opacity: 0.7; }

/* Status Area */
.status-box {
    text-align: center;
    min-height: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.download-link {
    display: inline-block;
    margin-top: 10px;
    background: #10b981;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}
.download-link:hover { background: #059669; }

/* Info Section */
.info-section { margin-top: 3rem; display: flex; justify-content: center; }
.info-card {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 1rem 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #a7f3d0;
    max-width: 600px;
}
.info-card i { font-size: 1.5rem; }

.hidden { display: none !important; }

footer { text-align: center; padding: 3rem 0; color: var(--text-muted); font-size: 0.9rem; border-top: 1px solid var(--card-border); margin-top: 3rem; }
footer a { color: #fff; text-decoration: none; }