/* =========================================
   MyPDFTools - Global Styles
   ========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}


/* =========================================
   HEADER
   ========================================= */

header {
    background: #2563eb;
    color: white;
    padding: 18px 20px;
    text-align: center;
}

header h1,
header h2 {
    margin: 0;
}


/* =========================================
   NAVIGATION
   ========================================= */

nav {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 20px;
    text-align: center;
}

nav a {
    color: #2563eb;
    text-decoration: none;
    margin: 0 12px;
    font-weight: 600;
}

nav a:hover {
    text-decoration: underline;
}


/* =========================================
   MAIN CONTAINER
   ========================================= */

.container {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
}


/* =========================================
   TOOL CARD
   ========================================= */

.tool-card {
    background: white;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    margin-bottom: 25px;
}

.tool-card h1,
.tool-card h2,
.tool-card h3 {
    margin-top: 0;
}


/* =========================================
   HOME PAGE
   ========================================= */

.hero {
    text-align: center;
    padding: 50px 20px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero p {
    color: #6b7280;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
}


/* =========================================
   TOOLS GRID
   ========================================= */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    );

    gap: 20px;
}

.tool {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.tool:hover {
    transform: translateY(-4px);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.10);
}

.tool h3 {
    margin-top: 0;
}

.tool p {
    color: #6b7280;
    line-height: 1.5;
}


/* =========================================
   BUTTONS
   ========================================= */

button,
.btn {
    display: inline-block;

    background: #2563eb;
    color: white;

    border: none;
    border-radius: 8px;

    padding: 13px 22px;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.1s ease;
}

button:hover,
.btn:hover {
    background: #1d4ed8;
}

button:active,
.btn:active {
    transform: scale(0.98);
}

button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}


/* =========================================
   FILE INPUT
   ========================================= */

input[type="file"] {
    display: block;

    width: 100%;

    padding: 12px;

    margin: 20px 0;

    background: #f9fafb;

    border: 1px solid #d1d5db;

    border-radius: 8px;

    cursor: pointer;
}


/* =========================================
   STATUS MESSAGE
   ========================================= */

#status {
    margin-top: 20px;

    text-align: center;

    font-weight: 600;

    min-height: 24px;
}


/* =========================================
   FOOTER
   ========================================= */

footer {
    margin-top: 60px;

    padding: 25px 20px;

    text-align: center;

    background: #111827;

    color: #d1d5db;
}

footer p {
    margin: 5px 0;
}


/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 768px) {

    .container {
        width: 94%;
        margin: 25px auto;
    }

    .hero {
        padding: 35px 15px;
    }

    .hero h1 {
        font-size: 32px;
    }

    nav a {
        display: inline-block;
        margin: 5px 8px;
    }

    .tool-card {
        padding: 22px;
    }

}


@media (max-width: 480px) {

    .hero h1 {
        font-size: 28px;
    }

    button,
    .btn {
        width: 100%;
    }

}
