/* gpt-assistant.css */

.ppc-public-offer {
    font-family: 'Roboto', sans-serif;
    color: #17211f;
    background: #fbfaf6;
}
.ppc-offer-hero {
    padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 64px);
    background: linear-gradient(135deg, #f7fbf8 0%, #e7f4ef 100%);
    border-bottom: 1px solid #dfe7e1;
}
.ppc-eyebrow {
    margin: 0 0 14px;
    color: #0f766e;
    font-weight: 800;
}
.ppc-offer-hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(34px, 6vw, 68px);
    line-height: 1.02;
}
.ppc-hero-copy {
    max-width: 720px;
    margin: 22px 0 0;
    color: #4f625d;
    font-size: 20px;
    line-height: 1.65;
}
.ppc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}
.ppc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}
.ppc-primary {
    color: #fff;
    background: #0f766e;
}
.ppc-secondary {
    color: #0a4f49;
    background: #fff;
    border: 1px solid #cad8d2;
}
.ppc-offer-section {
    padding: clamp(44px, 7vw, 78px) clamp(18px, 5vw, 64px);
}
.ppc-offer-section h2 {
    max-width: 760px;
    margin: 0 0 26px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.08;
}
.ppc-price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.ppc-price-card {
    padding: 24px;
    background: #fff;
    border: 1px solid #dfe7e1;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(23, 33, 31, 0.07);
}
.ppc-price-card h3 {
    margin: 0 0 10px;
}
.ppc-price-card p,
.ppc-price-card li {
    color: #60706b;
    line-height: 1.58;
}
.ppc-price {
    margin: 0 0 12px;
    color: #0a4f49 !important;
    font-size: 32px;
    font-weight: 900;
}
.ppc-featured {
    border-color: #0f766e;
    box-shadow: 0 18px 44px rgba(15, 118, 110, 0.16);
}
.ppc-how {
    background: #123a35;
    color: #fff;
}
.ppc-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.ppc-steps div {
    min-height: 118px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
}
.ppc-steps strong,
.ppc-steps span {
    display: block;
}
.ppc-steps span {
    margin-top: 8px;
    color: #cfe7df;
}

@media (max-width: 860px) {
    .ppc-price-grid,
    .ppc-steps {
        grid-template-columns: 1fr;
    }
}

/* General button styles for a modern, minimalist look */
#gpt-chat-container button,
#gpt-login-container button,
#gpt-register-parent-container button,
#gpt-register-child-container button,
#gpt-parent-dashboard button {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #E3F0FA;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
#gpt-chat-container button:hover,
#gpt-login-container button:hover,
#gpt-register-parent-container button:hover,
#gpt-register-child-container button:hover,
#gpt-parent-dashboard button:hover {
    background-color: #C6E0F5;
    transform: translateY(-1px);
}
#gpt-chat-container button:active,
#gpt-login-container button:active,
#gpt-register-parent-container button:active,
#gpt-register-child-container button:active,
#gpt-parent-dashboard button:active {
    transform: translateY(0);
}

/* Login and registration form styles */
#gpt-login-container h2, #gpt-login-container h3,
#gpt-register-parent-container h2,
#gpt-register-child-container h2 {
    font-family: 'Roboto', sans-serif;
    color: #333;
}
#gpt-login-container form,
#gpt-register-parent-container form,
#gpt-register-child-container form {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
#gpt-login-container input[type="email"],
#gpt-login-container input[type="password"],
#gpt-login-container input[type="text"],
#gpt-register-parent-container input[type="text"],
#gpt-register-parent-container input[type="email"],
#gpt-register-parent-container input[type="password"],
#gpt-register-child-container input[type="text"],
#gpt-register-child-container input[type="password"] {
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
#gpt-login-container label,
#gpt-register-parent-container label,
#gpt-register-child-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Styles from the original inline CSS in gpt-assistant.php */
.tab {
    padding: 5px 10px;
    margin-right: 5px;
    cursor: pointer;
}
.tab.active {
    background: #ddd;
}
.interface {
    display: none;
}
.interface.active {
    display: flex;
}
.paragraph-section {
    position: relative;
}
.text-window {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    padding: 5px;
    z-index: 50;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 14px;
    box-sizing: border-box;
    border: 1px solid #000;
}
.grade-window {
    position: absolute;
    width: 40px;
    text-align: center;
    display: none;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    background: #fff;
    border: 1px solid #ccc;
    padding: 2px;
    font-size: 12px;
}
#gpt-response p, #gpt-response div {
    margin-bottom: 16px;
}
#gpt-response pre {
    font-family: monospace;
    white-space: pre-wrap;
}
#gpt-response img.graph-image {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
}
#pdf-viewer canvas {
    width: 100% !important;
    height: auto !important;
    display: block;
    image-rendering: pixelated;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    outline: none;
}
#pdf-viewer .text-layer {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    opacity: 0;
    line-height: 1.0;
}
#pdf-viewer .text-layer span {
    color: transparent;
    position: absolute;
    white-space: pre;
    cursor: text;
}
#adjust-sharpness {
    padding: 5px 10px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 4px;
}
#sharpness-options {
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    display: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#sharpness-options button {
    display: block;
    margin: 5px 0;
    padding: 5px 10px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 4px;
}

/* PDF controls container */
#pdf-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* Scale container */
#scale-container, #popup-scale-container {
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10001;
}
#scale-minus, #scale-plus, #popup-scale-minus, #popup-scale-plus {
    padding: 8px 12px;
    font-size: 16px;
    line-height: 1;
}
#scale-display, #popup-scale-display {
    padding: 8px 16px;
    background-color: #E3F0FA;
    border-radius: 4px;
    cursor: default;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    width: 90px; /* Increased width for better readability */
    text-align: center;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* PDF viewer containers */
#pdf-viewer-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}
#pdf-viewer {
    width: 100%;
    max-width: 800px;
    max-height: 87.5vh;
    min-height: 200px;
    overflow: auto;
    position: relative;
    z-index: 1;
    border: 2px solid #000;
    resize: both;
    box-sizing: border-box;
    flex: 1 1 auto;
}
#popup-pdf-viewer {
    width: 100%;
    height: calc(100vh - 60px); /* Adjusted for control bar */
    overflow-y: auto;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}
.page-container {
    position: relative;
    margin-bottom: 10px;
    display: block;
    width: 100%;
    margin: 0 auto;
}

/* Modal styles */
.pdf-modal {
    display: none;
    position: fixed;
    z-index: 10002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh; /* Ensure full height on all devices */
    background-color: rgba(0,0,0,0.4);
    overflow: hidden; /* Prevent modal itself from scrolling */
}
.pdf-modal-content {
    background-color: #fefefe;
    margin: 0;
    padding: 0;
    border: none;
    width: 100%;
    height: 100vh; /* Full height */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    margin-top: 60px; /* Space for the control bar, adjusted dynamically */
}
.pdf-modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10003;
}
.pdf-modal-close:hover,
.pdf-modal-close:focus {
    color: black;
    text-decoration: none;
}
#popup-pdf-controls {
    padding: 10px;
    background: #ffffff;
    z-index: 10004; /* Increased to ensure above admin bar */
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding-top: 10px; /* Extra padding for mobile browser toolbars */
}
