/* PDF Crop Tool Styles - Fully Responsive */
/* Using Design System Variables */

:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: rgba(67, 97, 238, 0.1);
    --secondary: #7209b7;
    --secondary-light: rgba(114, 9, 183, 0.1);
    --accent: #f72585;
    --accent-light: rgba(247, 37, 133, 0.1);
    --success: #4cc9f0;
    --success-light: rgba(76, 201, 240, 0.1);
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-large: 0 25px 50px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--secondary));
    --gradient-dark: linear-gradient(135deg, var(--dark), #000);
}

/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7ff 0%, #f0f2ff 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

p {
    color: var(--gray);
    margin-bottom: 1rem;
}

/* ===== HEADER ===== */
header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    min-height: 70px;
}

.logo a {
    display: inline-block;
    transition: var(--transition);
}

.logo img {
    height: 40px;
    width: auto;
}

.logo img:hover {
    transform: scale(1.05);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
}

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-menu a i {
    font-size: 0.9em;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    min-height: 44px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--gray);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-height: 36px;
}

/* ===== MAIN CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    flex: 1;
    width: 100%;
}

.container .header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.container .header p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== MAIN LAYOUT ===== */
.main {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    min-height: 600px;
    align-items: start;
}

/* ===== SIDEBAR ===== */
.sidebar {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 90px;
}

/* ===== DROPZONE ===== */
.dropzone {
    border: 3px dashed var(--primary);
    border-radius: var(--border-radius);
    padding: 2.5rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    background: var(--primary-light);
    margin-bottom: 1rem;

    /* Center content */
    display: flex;
    flex-direction: column;   /* stack items vertically */
    align-items: center;      /* horizontal center */
    justify-content: center;  /* vertical center */
    text-align: center;       /* text center */
}

.dropzone:hover {
    background: white;
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.dropzone svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    stroke: var(--primary);
    stroke-width: 1.5;
    transition: var(--transition);
}

.dropzone:hover svg {
    stroke: var(--secondary);
    transform: scale(1.1);
}

.dropzone p {
    margin: 0.5rem 0;
    color: var(--gray);
    font-size: 0.95rem;
}

.dropzone p:last-child {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.5rem;
}

/* ===== FILE INFO ===== */
.file-info {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    display: none;
}

.file-info.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.file-info div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.file-info div:last-child {
    margin-bottom: 0;
}

/* ===== MODE TOGGLE ===== */
.mode-toggle {
    display: flex;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 0.25rem;
    margin-bottom: 1rem;
}

.mode-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: var(--primary);
    color: white;
    font-weight: 600;
    cursor: pointer;
    border-radius: calc(var(--border-radius) - 4px);
    transition: var(--transition);
    font-size: 0.9rem;
}

.mode-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===== MARGIN CONTROLS ===== */
#marginControls {
    margin-bottom: 1.5rem;
}

#marginControls h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.margin-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray);
}

.input-group input {
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
    width: 100%;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* ===== CROP OPTIONS ===== */
.crop-options {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.crop-options h4 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.apply-to-option {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: white;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.apply-to-option:last-child {
    margin-bottom: 1.5rem;
}

.apply-to-option:hover {
    background: var(--primary-light);
}

.apply-to-option label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    width: 100%;
    font-size: 0.9rem;
}

.apply-to-option input[type="radio"] {
    width: 16px;
    height: 16px;
}

.pages-select {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
    max-height: 150px;
    overflow-y: auto;
    padding: 0.5rem;
    background: white;
    border-radius: var(--border-radius-sm);
}

.page-checkbox {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}

.page-checkbox:hover {
    border-color: var(--primary);
}

.page-checkbox.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.crop-controls {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.crop-controls .btn {
    flex: 1;
}

.crop-coordinates {
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.coordinate-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--light-gray);
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
}

/* ===== ACTION BUTTONS ===== */
#cropBtn, #resetBtn {
    width: 100%;
    margin-top: 0.5rem;
    color: white;
    background-color: var(--primary);
}

#cropBtn {
    margin-bottom: 0.5rem;
    background-color: var(--primary);
}

/* ===== CONTENT AREA ===== */
.content {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

/* ===== TOOLBAR ===== */
.toolbar {
    padding: 1rem 2rem;
    background: var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.page-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-nav button {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    min-width: 100px;
}

.page-nav button:hover:not(:disabled) {
    border-color: var(--primary);
    background: var(--primary-light);
}

.page-nav button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-nav span {
    font-weight: 500;
    color: var(--dark);
}

.zoom-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.zoom-control label {
    font-weight: 500;
    color: var(--dark);
    font-size: 0.9rem;
}

.zoom-control select {
    padding: 0.5rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius-sm);
    background: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    min-width: 100px;
}

.zoom-control select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ===== PREVIEW CONTAINER ===== */
.preview-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 500px;
}

#noFileMessage {
    max-width: 800px;        /* section ki normal width */
    margin: 0 auto;          /* horizontal center */
    padding: 60px 20px;

    text-align: center;
    color: #666;

    background: #e8f3ff;     /* optional – jo tumhari blue box hai */
    border-radius: 12px;
}

#noFileMessage svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

#noFileMessage h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

#noFileMessage p {
    font-size: 1rem;
    color: var(--gray);
}

.canvas-wrapper {
    position: relative;
    background: rgb(248, 249, 250);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 20px inset;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;

    /* CENTER PDF */
    display: flex;
    align-items: center;      /* vertical center */
    justify-content: center;  /* horizontal center */
}

canvas {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
}

/* ===== CROP RECTANGLE ===== */
.crop-rect {
    position: absolute;
    border: 3px solid var(--primary);
    background: rgba(99, 123, 230, 0.1);
    cursor: move;
}

.resize-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border: 2px solid var(--accent);
    border-radius: 50%;
}

.resize-handle.nw { top: -6px; left: -6px; cursor: nw-resize; }
.resize-handle.ne { top: -6px; right: -6px; cursor: ne-resize; }
.resize-handle.sw { bottom: -6px; left: -6px; cursor: sw-resize; }
.resize-handle.se { bottom: -6px; right: -6px; cursor: se-resize; }
.resize-handle.n { top: -6px; left: 50%; transform: translateX(-50%); cursor: n-resize; }
.resize-handle.s { bottom: -6px; left: 50%; transform: translateX(-50%); cursor: s-resize; }
.resize-handle.w { left: -6px; top: 50%; transform: translateY(-50%); cursor: w-resize; }
.resize-handle.e { right: -6px; top: 50%; transform: translateY(-50%); cursor: e-resize; }

.crop-hint {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    text-align: center;
    max-width: 800px;
}

/* ===== ALERTS ===== */
.error-alert, .success-alert {
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-top: 1rem;
    display: none;
    animation: slideDown 0.3s ease;
}

.error-alert {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.success-alert {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.2);
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

.loading-overlay h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.loading-overlay p {
    color: var(--gray);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--dark), #000);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    font-size: 0.95rem;
}

.footer-column ul li a:hover {
    color: white;
    transform: translateX(5px);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Devices (768px - 1024px) */
@media (max-width: 1024px) {
    .main {
        grid-template-columns: 300px 1fr;
        gap: 1.5rem;
    }
    
    .sidebar {
        padding: 1.5rem;
        top: 80px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .container, .header-container, footer .container {
        padding: 0 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .header-content {
        padding: 0.75rem 0;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    .main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .content {
        min-height: auto;           /* fixed height remove */
        border-radius: 12px;        /* softer corners */
        box-shadow: none;           /* cleaner mobile look */
        padding: 0.75rem;           /* breathing space */
    }

    
    .sidebar {
        position: static;
        margin-bottom: 1rem;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .mobile-menu {
        display: block;
        order: 1;
    }
    
    .logo {
        order: 0;
    }
    
    .nav-menu {
        display: none;
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }
    
    .nav-menu.show {
        display: block;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        padding: 1rem;
        justify-content: center;
        border-radius: var(--border-radius-sm);
        background: var(--light-gray);
    }
    
    .auth-buttons {
        display: none;
        order: 2;
        margin-left: auto;
        flex-direction: column;
        width: auto;
    }
    
    .auth-buttons .btn {
        display: none;
        min-width: 100px;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }
    
    .page-nav, .zoom-control {
        width: 100%;
        justify-content: center;
    }
    
    .margin-inputs {
        grid-template-columns: 1fr;
    }
    
    .crop-controls {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .container .header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .header-container, .container, footer .container {
        padding: 0 1rem;
    }
    
    .sidebar, .content {
        padding: 1rem;
    }
    
    .dropzone {
        padding: 2rem 1rem;
    }
    
    .dropzone svg {
        width: 40px;
        height: 40px;
    }
    
    .auth-buttons {
        display: none;
        flex-direction: row;
        width: 100%;
        justify-content: flex-end;
    }
    
    .auth-buttons .btn {
        display: none;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        min-width: auto;
        flex: 1;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .crop-coordinates {
        grid-template-columns: 1fr;
    }
    
    .preview-container {
        padding: 1rem;
    }
    
    .canvas-wrapper {
        margin: 0;
    }
    
    .footer-column p {
        font-size: 0.9rem;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.show {
    display: block !important;
}

.hide {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== FOCUS STATES ===== */
:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    header, footer, .sidebar, .toolbar {
        display: none !important;
    }
    
    .content {
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        padding: 0;
    }
    
    .preview-container {
        padding: 0;
    }
}
/* ===== Addinational styles for crop tool section ===== */
/* ==================================
   PDF CROP TOOL CONTENT SECTION
================================== */

.tool-content {
    padding: 100px 20px;
    background: #ffffff;
    font-family: 'Inter', sans-serif;
}

.tool-content-container {
    max-width: 900px;
    margin: auto;
}

/* Section Heading */
.tool-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 30px;
    line-height: 1.3;
    text-align: left;
    position: relative;
}

/* Optional underline accent */
.tool-content h2::after {
    content: "";
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    display: block;
    margin-top: 12px;
    border-radius: 5px;
}

/* Paragraph Styling */
.tool-content p {
    font-size: 17px;
    line-height: 1.9;
    color: #4b5563;
    margin-bottom: 22px;
    text-align: justify;
}

/* Highlight strong keywords */
.tool-content strong {
    color: #4f46e5;
    font-weight: 700;
}

/* Improve spacing between sections */
.tool-content p:last-child {
    margin-bottom: 0;
}

/* Subtle hover focus effect (optional modern touch) */
.tool-content p:hover {
    color: #374151;
    transition: color 0.3s ease;
}

/* ==================================
   RESPONSIVE DESIGN
================================== */

@media (max-width: 768px) {

    .tool-content {
        padding: 70px 18px;
    }

    .tool-content h2 {
        font-size: 24px;
    }

    .tool-content p {
        font-size: 15px;
        line-height: 1.8;
    }
}

/* ==================================
   END OF PDF CROP TOOL CONTENT SECTION*/
   /* FAQ Section */
.faq-section {
    padding: 90px 20px;
    background: linear-gradient(135deg, #f9fafb, #eef2ff);
    font-family: 'Inter', sans-serif;
}

.faq-container {
    max-width: 850px;
    margin: auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 45px;
    color: #111827;
}

/* FAQ Card */
.faq-item {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
}

/* Summary */
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 22px;
    color: #4f46e5;
    transition: 0.3s ease;
}

.faq-item[open] summary::after {
    content: "−";
}

/* Content */
.faq-content {
    padding: 0 22px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-item[open] .faq-content {
    padding: 0 22px 18px 22px;
    max-height: 300px;
}

.faq-content p {
    font-size: 15.5px;
    line-height: 1.7;
    color: #4b5563;
}

/* Mobile */
@media (max-width: 600px) {
    .faq-section h2 {
        font-size: 24px;
    }
    .faq-item summary {
        font-size: 15px;
    }
}
