/*
Theme Name: D Tech ePaper
Theme URI: https://epaper.pakwatan.tv
Author: D Tech
Author URI: https://detech.pk
Description: Premium ePaper Theme
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
License: Commercial
Text Domain: epaper-theme
*/

/* ==========================================================================
   ePaper Viewer Structure & Toolbar
   ========================================================================== */
.epaper-single-viewer {
    background: #333;
    padding: 20px;
}

.viewer-toolbar {
    background: #0a6b1f;
    border-radius: 6px;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 1280px;
    margin: 20px auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.toolbar-left,
.toolbar-center,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toolbar-left {
    justify-content: flex-start;
}

.toolbar-center {
    flex: 1;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

.toolbar-right {
    justify-content: flex-end;
}

.page-counter {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

#goto-page {
    width: 70px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    text-align: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.ep-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 8px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease;
}

.ep-btn:hover {
    background: #ffeb3b;
}

/* ==========================================================================
   ePaper Viewer Frame & Lens Container
   ========================================================================== */
#active-viewer-frame {
    max-width: 1280px;
    margin: 20px auto;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#epaper-lens-container {
    position: relative;
    display: block;
    width: 100%;
}

#current-newspaper-img {
    width: 100%;
    display: block;
}

/* Zoom Lens */
#epaper-zoom-lens {
    position: absolute;
    display: none;
    width: 340px;
    height: 260px;
    border: 4px solid #0a6b1f;
    border-radius: 8px;
    background-color: #fff;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 99999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   Forms (Contact & Feedback)
   ========================================================================== */
.feedback-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    direction: rtl;
}

.feedback-form p {
    margin-bottom: 18px;
}

.feedback-form label,
.contact-box label {
    display: block;
    margin-bottom: 8px;
    color: #000;
    font-size: 16px;
    font-weight: bold;
}

/* Universal Input Field Styles & iOS Autofill Overrides */
.contact-box input,
.contact-box input[type="text"],
.contact-box input[type="email"],
.contact-box input[type="tel"],
.contact-box textarea,
.feedback-form input,
.feedback-form textarea,
.feedback-box input,
.feedback-box textarea {
    width: 100%;
    box-sizing: border-box;
    background: #ffffff !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    border: 1px solid #ccc !important;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.feedback-form textarea,
.contact-box textarea {
    min-height: 180px;
    resize: vertical;
}

/* Input Placeholder State */
.contact-box input::placeholder,
.contact-box textarea::placeholder,
.feedback-box input::placeholder,
.feedback-box textarea::placeholder {
    color: #777 !important;
}

/* Input Active / Focus States */
.contact-box input:focus,
.contact-box textarea:focus,
.feedback-form input:focus,
.feedback-form textarea:focus,
.feedback-box input:focus,
.feedback-box textarea:focus {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #0a6b1f !important;
    box-shadow: 0 0 8px rgba(10, 107, 31, 0.25) !important;
    outline: none;
}

/* Submit Buttons */
.feedback-form input[type="submit"],
.contact-box .send-btn {
    width: 100%;
    padding: 14px 35px;
    background: #0a6b1f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-box .send-btn {
    width: auto; /* Keeps contact button inline if designed to be smaller */
}

.feedback-form input[type="submit"]:hover,
.contact-box .send-btn:hover {
    background: #084f17;
}

/* ==========================================================================
   Responsive Configurations
   ========================================================================== */
@media (max-width: 768px) {
    .viewer-toolbar {
        flex-direction: column;
        padding: 15px;
    }

    .toolbar-left,
    .toolbar-center,
    .toolbar-right {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .ep-btn {
        width: 100%;
        text-align: center;
    }

    .feedback-form {
        padding: 15px;
    }

    .feedback-form label {
        font-size: 15px;
    }

    .contact-box input,
    .contact-box textarea,
    .feedback-form input,
    .feedback-form textarea {
        font-size: 15px;
    }

    .feedback-form input[type="submit"],
    .contact-box .send-btn {
        width: 100%;
        font-size: 17px;
    }
}