/* Tool pages custom styles */

/* Enhanced Logo Styling */
.navbar-brand {
    color: #00d8ff !important;
    font-weight: 700;
    font-size: 1.6rem;
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.navbar-brand:before {
    content: '';
    position: absolute;
    bottom: 0.3rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 216, 255, 0.5), transparent);
}

.navbar-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.6rem;
    width: 2.2rem;
    height: 2.2rem;
    background: linear-gradient(135deg, #00d8ff, #0088ff);
    border-radius: 0.5rem;
    box-shadow: 0 0 15px rgba(0, 216, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.navbar-brand-icon i {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.navbar-brand-icon:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
}

.navbar-brand-text {
    font-weight: 800;
    background: linear-gradient(to right, #fff, #00d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.navbar-brand-text span {
    font-weight: 300;
    color: #00d8ff;
    opacity: 0.9;
    font-size: 0.9em;
    -webkit-text-fill-color: #00d8ff;
}

.nav-link {
    color: #7ebcff !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: #00d8ff !important;
    background: rgba(0, 216, 255, 0.1);
}

/* Add custom navbar styles */
.navbar {
    background: rgba(12, 27, 51, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 216, 255, 0.2);
    padding: 1rem 0;
}

/* Dropdown menu styling */
.dropdown-menu-dark {
    background: rgba(12, 27, 51, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 216, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: #7ebcff;
    padding: 0.6rem 1rem;
    border-radius: 0.3rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
    background: rgba(0, 216, 255, 0.1);
    color: #00d8ff;
}

/* Mobile navbar adjustments */
@media (max-width: 992px) {
    .navbar-collapse {
        background: rgba(12, 27, 51, 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: rgba(26, 42, 68, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 216, 255, 0.2);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 0 15px rgba(0, 216, 255, 0.1);
    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(26, 42, 68, 0.7);
    border: 1px solid rgba(0, 216, 255, 0.2);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.thumbnail-preview {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: white;
    border-bottom: 1px solid rgba(0, 216, 255, 0.2);
    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: #7ebcff;
    font-size: 0.875rem;
    text-align: center;
    background: rgba(26, 42, 68, 0.7);
}

.thumbnail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 216, 255, 0.2);
}

.thumbnail-card.selected {
    background: rgba(0, 216, 255, 0.1);
    border-color: #00d8ff;
}

@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(0, 216, 255, 0.3);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(12, 27, 51, 0.5);
    cursor: pointer;
}

.upload-area:hover {
    border-color: #00d8ff;
    background: rgba(12, 27, 51, 0.7);
    box-shadow: 0 0 15px rgba(0, 216, 255, 0.2);
}

.upload-area.drag-over {
    border-color: #00d8ff;
    background: rgba(12, 27, 51, 0.7);
    box-shadow: 0 0 15px rgba(0, 216, 255, 0.3);
}

/* 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(12, 27, 51, 0.5);
    border: 1px solid rgba(0, 216, 255, 0.2);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 216, 255, 0.2);
}

.image-preview {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: white;
    border-bottom: 1px solid rgba(0, 216, 255, 0.2);
}

.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(to right, #00d8ff, #0088ff);
    border: none;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(to right, #00b3d9, #1a94ff);
    box-shadow: 0 0 15px rgba(0, 216, 255, 0.4);
    transform: translateY(-2px);
}

/* Options panel */
.options-panel {
    background: rgba(12, 27, 51, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 216, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.options-panel select {
    background: rgba(12, 27, 51, 0.7);
    border: 1px solid rgba(0, 216, 255, 0.2);
    color: #fff;
    padding: 0.5rem;
    border-radius: 0.25rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

.options-panel select:focus {
    border-color: #00d8ff;
    outline: none;
}

/* Footer styles */
.footer {
    background: rgba(12, 27, 51, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(0, 216, 255, 0.2);
    padding: 3rem 0;
    margin-top: 5rem;
    text-align: center;
    color: #7ebcff;
    position: relative;
    z-index: 10;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0;
}

.footer-link {
    color: #7ebcff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #00d8ff;
}

/* 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: linear-gradient(135deg, #020b1a 0%, #132744 100%);
    color: #fff;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    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(12, 27, 51, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 216, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.format-dropdown select {
    background: rgba(12, 27, 51, 0.7);
    border: 1px solid rgba(0, 216, 255, 0.2);
    color: #fff;
    padding: 0.4rem 0.6rem;
    border-radius: 0.25rem;
}

.divider {
    width: 1px;
    height: 24px;
    background: rgba(0, 216, 255, 0.2);
    margin: 0 8px;
}

.format-button {
    background: transparent;
    border: 1px solid rgba(0, 216, 255, 0.2);
    color: #7ebcff;
    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(0, 216, 255, 0.1);
    color: #00d8ff;
    border-color: rgba(0, 216, 255, 0.4);
}

.color-picker input, .highlight-color-picker input {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(0, 216, 255, 0.2);
    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(26, 42, 68, 0.7);
    border: 1px solid rgba(0, 216, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.page-navigation button {
    background: transparent;
    border: 1px solid rgba(0, 216, 255, 0.2);
    color: #7ebcff;
    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(0, 216, 255, 0.1);
    color: #00d8ff;
}

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

.page-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #7ebcff;
}

.page-info input {
    width: 50px;
    background: rgba(12, 27, 51, 0.7);
    border: 1px solid rgba(0, 216, 255, 0.2);
    color: #fff;
    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(26, 42, 68, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 216, 255, 0.2);
    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(12, 27, 51, 0.7);
    border: 1px solid rgba(0, 216, 255, 0.2);
    color: #7ebcff;
    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(0, 216, 255, 0.2);
    color: #00d8ff;
    border-color: rgba(0, 216, 255, 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(12, 27, 51, 0.5);
    border: 1px solid rgba(0, 216, 255, 0.2);
    border-radius: 0.5rem;
}

.text-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #7ebcff;
}

.text-stat i {
    color: #00d8ff;
    font-size: 1.1rem;
}

.text-preview {
    background: rgba(12, 27, 51, 0.5);
    border: 1px solid rgba(0, 216, 255, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.text-preview pre {
    white-space: pre-wrap;
    word-break: break-word;
    color: #fff;
    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(12, 27, 51, 0.5);
    border: 1px solid rgba(0, 216, 255, 0.2);
    border-radius: 0.75rem;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.document-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(26, 42, 68, 0.7);
    border: 1px solid rgba(0, 216, 255, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem auto;
    max-width: 250px;
}

.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: #fff;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.document-info small {
    color: #7ebcff;
}

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

/* PDF Preview Styles */
.pdf-preview-container {
    background: rgba(26, 42, 68, 0.7);
    border: 1px solid rgba(0, 216, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem auto;
    max-width: 800px;
}

.pdf-preview {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
}

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

/* 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;
    }
} 