/* =========================================================
   IMAGE DPI CONVERTER
   ========================================================= */

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

body {
    background: linear-gradient(45deg, #ffffff, #f4f4f4, #eeeeee);
    color: #333;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.dpi-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.dpi-main {
    max-width: 960px;
    margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.dpi-hero {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
    margin-bottom: 30px;
}

.dpi-hero h1 {
    margin: 0 0 12px;
    font-size: 2.5rem;
    color: #222;
}

.dpi-hero p {
    margin: 0;
    color: #666;
    font-size: 1.05rem;
}


/* =========================================================
   UPLOAD CARD
========================================================= */

.dpi-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    margin-bottom: 40px;
}

.dpi-card h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    color: #222;
}


/* =========================================================
   FORM
========================================================= */

.dpi-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.field-group {
    width: 100%;
    max-width: 550px;
    margin-bottom: 20px;
}

.field-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.file-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #007bff;
    border-radius: 7px;
    background: #f8fbff;
    cursor: pointer;
}

.dpi-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 7px;
    font-size: 16px;
}

.dpi-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.10);
}

.dpi-help {
    display: block;
    margin-top: 6px;
    color: #777;
    font-size: 13px;
}


/* =========================================================
   PREVIEW
========================================================= */

.image-preview {
    display: none;
    width: 100%;
    max-width: 550px;
    margin: 10px auto 25px;
    padding: 20px;
    box-sizing: border-box;
    background: #f8f8f8;
    border-radius: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.image-preview img {
    display: block;
    max-width: 100%;
    max-height: 350px;
    height: auto;
    margin: 0 auto 15px;
    border-radius: 6px;
}

.file-information {
    text-align: left;
    font-size: 14px;
    line-height: 1.8;
}

.file-information strong {
    color: #333;
}


/* =========================================================
   BUTTON
========================================================= */

.convert-button {
    width: 100%;
    max-width: 550px;
    padding: 14px 25px;
    border: none;
    border-radius: 7px;
    background: #28a745;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.convert-button:hover {
    background: #218838;
}

.convert-button:disabled {
    background: #999;
    cursor: not-allowed;
}


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

.conversion-status {
    display: none;
    width: 100%;
    max-width: 550px;
    margin: 25px auto 0;
    text-align: center;
}

.status-message {
    margin-bottom: 12px;
    font-weight: bold;
}

.progress-container {
    width: 100%;
    height: 18px;
    background: #e9ecef;
    border-radius: 20px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: #28a745;
    transition: width 0.3s ease;
}

.progress-value {
    margin-top: 8px;
    font-size: 14px;
    color: #555;
}


/* =========================================================
   DOWNLOAD
========================================================= */

.download-section {
    display: none;
    margin-top: 25px;
    text-align: center;
}

.download-button {
    display: inline-block;
    padding: 13px 25px;
    background: #007bff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 7px;
    font-weight: bold;
}

.download-button:hover {
    background: #0069d9;
}


/* =========================================================
   ERROR
========================================================= */

.error-message {
    display: none;
    width: 100%;
    max-width: 550px;
    margin: 20px auto 0;
    padding: 12px;
    box-sizing: border-box;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 7px;
    text-align: center;
}


/* =========================================================
   GDPR
========================================================= */

.gdpr-statement {
    margin-top: 25px;
    margin-bottom: 0;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}


/* =========================================================
   INFORMATION SECTION
========================================================= */

.content-section {
    padding: 30px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.10);
    background-color: #ffffff;
    max-width: 900px;
    margin: 40px auto;
    border-radius: 12px;
    box-sizing: border-box;
}

.content-section h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
}

.content-section ul {
    line-height: 1.7;
}

.content-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.content-column {
    padding: 18px;
    background: #f8f8f8;
    border-radius: 10px;
}

.content-column h3 {
    margin-top: 0;
}

.content-column p {
    line-height: 1.6;
    font-size: 15px;
}


/* =========================================================
   LINKS
========================================================= */

.links-section {
    margin: 50px auto;
    max-width: 900px;
}

.links-section h2 {
    text-align: center;
    margin-bottom: 25px;
}

.links-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.link-item {
    background: #222;
    padding: 15px;
    border-radius: 7px;
    text-align: center;
}

.link-item a {
    color: #00bfff;
    text-decoration: none;
    font-weight: bold;
}

.link-item a:hover {
    text-decoration: underline;
}


/* =========================================================
   FAQ
========================================================= */

.faqs {
    max-width: 900px;
    margin: 50px auto;
}

.faqs h2 {
    text-align: center;
    margin-bottom: 30px;
}

.faq-item {
    background: #ffffff;
    margin-bottom: 10px;
    padding: 16px;
    border-radius: 7px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
}

.faq-answer {
    display: none;
    padding-top: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.toggle-icon {
    font-size: 20px;
    margin-left: 15px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .dpi-page {
        padding: 10px;
    }

    .dpi-hero {
        padding: 25px 15px;
    }

    .dpi-hero h1 {
        font-size: 2rem;
    }

    .dpi-card {
        padding: 20px 15px;
    }

    .content-columns {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 20px 15px;
    }

    .links-container {
        grid-template-columns: 1fr;
    }

    .faqs {
        padding: 0 5px;
    }
}
