/*
Theme Name: ulovepdfs
Theme URI: https://ulovepdfs.com
Author: ulovepdfs team
Author URI: https://ulovepdfs.com
Description: A lightweight, performance-focused, custom theme for ulovepdfs utility tools.
Version: 1.0.0
Text Domain: ulovepdfs
*/

/* --- CSS Variables & Design System --- */
:root {
    /* Colors */
    --color-primary: #2563EB;
    --color-primary-hover: #1D4ED8;
    --color-secondary: #1E293B;
    --color-accent: #F59E0B;
    
    /* Neutrals */
    --color-bg: #F8FAFC;
    --color-surface: #FFFFFF;
    --color-text-main: #0F172A;
    --color-text-muted: #64748B;
    --color-border: #E2E8F0;
    
    /* Categories */
    --cat-dev: #8B5CF6;
    --cat-text: #10B981;
    --cat-calc: #F59E0B;
    --cat-file: #3B82F6;
    --cat-life: #EC4899;
    --cat-image: #EF4444;

    /* Typography */
    --font-display: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    
    /* Spacing Scale (8px) */
    --sp-1: 8px;
    --sp-2: 16px;
    --sp-3: 24px;
    --sp-4: 32px;
    --sp-6: 48px;
    --sp-8: 64px;

    /* Borders & Shadows */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-card: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Dark Mode Variables */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #0F172A;
        --color-surface: #1E293B;
        --color-text-main: #F8FAFC;
        --color-text-muted: #94A3B8;
        --color-border: #334155;
    }
}
.dark-mode {
    --color-bg: #0F172A;
    --color-surface: #1E293B;
    --color-text-main: #F8FAFC;
    --color-text-muted: #94A3B8;
    --color-border: #334155;
}

/* --- Base Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s, color 0.3s;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    color: var(--color-secondary);
}
@media (prefers-color-scheme: dark) {
    h1, h2, h3, h4, h5, h6 {
        color: var(--color-text-main);
    }
}
.dark-mode h1, .dark-mode h2, .dark-mode h3, .dark-mode h4, .dark-mode h5, .dark-mode h6 {
    color: var(--color-text-main);
}
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--color-primary-hover);
}

/* --- Layout Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-2);
}
.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: var(--sp-3);
    border: 1px solid var(--color-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px var(--sp-3);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, transform 0.1s;
    font-family: var(--font-body);
}
.btn:active {
    transform: scale(0.98);
}
.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: #fff;
}
.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}
.btn-outline:hover {
    background-color: var(--color-border);
}

/* --- Form Inputs --- */
.input-group {
    margin-bottom: var(--sp-2);
}
.input-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 0.9rem;
}
input[type="text"], input[type="number"], textarea, select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-surface);
    color: var(--color-text-main);
    font-family: var(--font-body);
    transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* --- Grid System --- */
.grid {
    display: grid;
    gap: var(--sp-3);
}
.grid-cols-2 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 768px) {
    .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

/* --- Tool Layout --- */
.tool-header {
    text-align: center;
    margin-bottom: var(--sp-4);
}
.tool-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-3);
    margin-bottom: var(--sp-6);
}
@media (min-width: 992px) {
    .tool-layout {
        grid-template-columns: 1fr 1fr;
    }
}
.tool-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.tool-panel textarea {
    flex-grow: 1;
    min-height: 250px;
    resize: vertical;
}
.tool-actions {
    display: flex;
    gap: var(--sp-1);
    margin-top: var(--sp-2);
    justify-content: flex-end;
}
