﻿/* Tool pages custom styles - matching LifetimePDF home page */

:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-850: #14213a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --pink-500: #ec4899;
    --pink-400: #f472b6;
    --pink-300: #fbcfe8;
    --cyan-400: #22d3ee;
    --white: #ffffff;
    --text-primary: #f1f5f9;
    --text-secondary: #f3f4f8;
    --text-muted: #94a3b8;
    --border-color: rgba(148, 163, 184, 0.2);
    --card-background: rgba(15, 23, 42, 0.75);
    --card-border: rgba(148, 163, 184, 0.25);
    --shadow-soft: 0 20px 40px rgba(2, 6, 23, 0.4);
    --shadow-hover: 0 24px 60px rgba(236, 72, 153, 0.25);
}

/* Enhanced Logo Styling - matching home page */
.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.3rem;
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--white);
    text-decoration: none;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.85), rgba(34, 211, 238, 0.6));
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.35);
}

.brand-icon i {
    color: var(--white);
    font-size: 1.2rem;
}

.brand-text {
    color: var(--white);
}

.nav-link {
    color: var(--text-secondary) !important;
    transition: color 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--white) !important;
    background: rgba(236, 72, 153, 0.1);
}

/* Add custom navbar styles */
.navbar {
    background: rgba(2, 6, 23, 0.9);
    border-bottom: 1px solid rgba(236, 72, 153, 0.2);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
}

/* Dropdown menu styling */
.dropdown-menu-dark {
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(236, 72, 153, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: var(--text-secondary);
    padding: 0.6rem 1rem;
    border-radius: 0.3rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
    background: rgba(236, 72, 153, 0.1);
    color: var(--pink-400);
}

/* Mobile navbar adjustments */
@media (max-width: 992px) {
    .navbar-collapse {
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 0 0 1rem 1rem;
        padding: 1rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        margin-top: 10px;
    }

    .nav-link {
        padding: 0.8rem 1.2rem !important;
        margin-bottom: 0.3rem;
    }
}

/* Tool container styles */
.tool-container {
    background: var(--card-background);
    border-radius: 1.5rem;
    border: 1px solid var(--card-border);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}

/* Thumbnail grid styles */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.thumbnail-card {
    position: relative;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
}

.thumbnail-preview {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: white;
    border-bottom: 1px solid var(--border-color);
    display: block;
}

.thumbnail-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.thumbnail-label {
    padding: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: center;
    background: rgba(15, 23, 42, 0.7);
}

.thumbnail-card:hover {
    transform: translateY(-2px);
    border-color: rgba(236, 72, 153, 0.35);
    background: rgba(20, 33, 58, 0.9);
}

.thumbnail-card.selected {
    background: rgba(236, 72, 153, 0.1);
    border-color: var(--pink-400);
}

@media (max-width: 576px) {
    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .thumbnail-preview {
        height: 150px;
    }
}

/* Upload area styles */
.upload-area {
    border: 2px dashed rgba(148, 163, 184, 0.35);
    border-radius: 1.25rem;
    background: rgba(2, 6, 23, 0.45);
    padding: 2.5rem;
    text-align: center;
    transition: border 0.2s ease, background 0.2s ease;
    color: var(--text-secondary);
    cursor: pointer;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: rgba(236, 72, 153, 0.55);
    background: rgba(30, 41, 59, 0.65);
}

/* Image grid styles */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.image-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.image-card:hover {
    transform: translateY(-2px);
    border-color: rgba(236, 72, 153, 0.35);
    background: rgba(20, 33, 58, 0.9);
}

.image-preview {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.image-info {
    padding: 1rem;
}

.image-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.image-actions button {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.875rem;
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, var(--pink-500), #db2777);
    border: none;
    border-radius: 9999px;
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 35px rgba(236, 72, 153, 0.45);
    background: linear-gradient(135deg, var(--pink-500), #db2777);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--slate-950);
    border-radius: 0.75rem;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
}

.btn-light:hover {
    background: #e2e8f0;
    color: var(--slate-950);
}

.btn-outline-light {
    border-radius: 9999px;
    border: 1px solid rgba(248, 250, 252, 0.35);
    color: var(--white);
    padding: 0.75rem 1.75rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline-light:hover {
    background: rgba(248, 250, 252, 0.12);
    color: var(--white);
}

/* Options panel */
.options-panel {
    background: rgba(15, 23, 42, 0.65);
    border-radius: 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    padding: 1rem;
    margin: 1rem 0;
}

.options-panel select {
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 0.25rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

.options-panel select:focus {
    border-color: var(--pink-400);
    outline: none;
}

/* Footer styles */
.footer {
    background: rgba(2, 6, 23, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    margin-top: 5rem;
    text-align: center;
    color: var(--text-muted);
    position: relative;
    z-index: 10;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--white);
}

/* Mobile responsiveness for footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0;
        margin-top: 3rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

#pdfViewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

#pdfCanvas {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
}

/* Base styles */
body {
    background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.15), transparent 40%),
                radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 45%),
                linear-gradient(180deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.95));
    color: var(--text-primary);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
}

/* Main content wrapper */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Container styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* PDF Form Filler specific styles */
.text-formatting-toolbar {
    display: flex;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.format-dropdown {
    margin-right: 10px;
}

.format-dropdown select {
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.4rem 0.6rem;
    border-radius: 0.25rem;
}

.divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 8px;
}

.format-button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 0.25rem;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.format-button:hover, .format-button.active {
    background: rgba(236, 72, 153, 0.1);
    color: var(--pink-400);
    border-color: rgba(236, 72, 153, 0.4);
}

.color-picker input, .highlight-color-picker input {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    cursor: pointer;
}

.drawing-tools {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Page navigation */
.page-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 0.5rem;
    box-shadow: var(--shadow-soft);
}

.page-navigation button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 0.25rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.page-navigation button:hover:not(:disabled) {
    background: rgba(236, 72, 153, 0.1);
    color: var(--pink-400);
}

.page-navigation button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.page-info input {
    width: 50px;
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    text-align: center;
}

/* Mobile toolbars */
.mobile-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 0.75rem;
    display: flex;
    justify-content: space-around;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-tool-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.25rem;
}

.mobile-tool-btn.active, .mobile-tool-btn:hover {
    background: rgba(236, 72, 153, 0.2);
    color: var(--pink-400);
    border-color: rgba(236, 72, 153, 0.4);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .mobile-toolbar {
        padding: 0.5rem;
    }

    .mobile-tool-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .mobile-toolbar {
        padding: 0.35rem;
    }

    .mobile-tool-btn {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.875rem;
    }
}

/* Text stats and preview for PDF to Text tool */
.text-stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-soft);
}

.text-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.text-stat i {
    color: var(--pink-400);
    font-size: 1.1rem;
}

.text-preview {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-soft);
}

.text-preview pre {
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .text-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .result-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .result-actions button {
        width: 100%;
    }
}

/* Word to PDF converter specific styles */
.result-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.document-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin: 1.5rem auto;
    max-width: 250px;
    box-shadow: var(--shadow-soft);
}

.document-icon {
    margin-bottom: 1rem;
}

.document-icon .fa-file-pdf {
    filter: drop-shadow(0 0 10px rgba(255, 80, 80, 0.3));
}

.document-info h5 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.document-info small {
    color: var(--text-secondary);
}

@media (max-width: 576px) {
    .result-card {
        padding: 1.5rem 1rem;
    }
    
    .document-preview {
        padding: 1rem;
    }
}

/* PDF Preview Styles */
.pdf-preview-container {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin: 1.5rem auto;
    max-width: 800px;
    box-shadow: var(--shadow-soft);
}

.pdf-preview {
    background: var(--white);
    border-radius: 0.75rem;
    overflow: hidden;
}

@media (max-width: 768px) {
    .pdf-preview-container {
        padding: 1rem;
    }
    
    .pdf-preview iframe {
        height: 300px;
    }
}

.tool-seo-section {
    position: relative;
}

.tool-seo-card {
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 0.9rem;
    box-shadow: var(--shadow-soft);
}

.tool-seo-title {
    color: var(--white);
    font-weight: 600;
}

.tool-seo-copy {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.tool-seo-subtitle {
    color: var(--cyan-400);
    font-size: 1.25rem;
    font-weight: 600;
}

.tool-seo-faq {
    margin-top: 2rem;
}

.tool-seo-faq-item {
    border-top: 1px solid var(--card-border);
    padding-top: 1rem;
}

.tool-seo-faq-item:first-of-type {
    border-top: none;
    padding-top: 0;
}

.tool-seo-question {
    color: var(--white);
    font-weight: 600;
}

.tool-seo-answer {
    color: var(--text-muted);
    margin-bottom: 0;
}
/* Mobile responsiveness */
@media (max-width: 768px) {
    .tool-container {
        padding: 1.5rem;
        margin: 0.5rem;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .navbar-brand-icon {
        width: 2rem;
        height: 2rem;
    }

    .container {
        padding: 0 0.75rem;
    }
}

@media (max-width: 480px) {
    .tool-container {
        padding: 1rem;
        margin: 0.25rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-brand-icon {
        width: 1.8rem;
        height: 1.8rem;
    }

    .container {
        padding: 0 0.5rem;
    }
} 

