/* LogicLine PDFPresso - Aligned with ImageFinder Design System */

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header - LogicLine Blue - Matching ImageFinder */
.header {
    background-color: #00599B;
    border-bottom: none;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: auto;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.header-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 400;
    color: white;
    font-family: 'Roboto Slab', serif;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.logout-btn {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: all 0.25s ease-out;
}

.logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 100px);
    padding: 2rem 0;
    background-color: #f5f5f5;
}

/* Cards - Sharp corners like ImageFinder */
.card {
    background: white;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
}

/* Tool Selection */
.tool-selection h2 {
    margin-bottom: 1.5rem;
    color: #0D3E63;
    font-size: 1.5rem;
    font-weight: 600;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    border: 2px solid #ddd;
    background: white;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.25s ease-out;
    position: relative;
}

.tool-btn:hover {
    border-color: #F68121;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(246, 129, 33, 0.15);
}

.tool-btn.active {
    border-color: #F68121;
    background-color: rgba(246, 129, 33, 0.05);
}

.tool-btn.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #F68121;
    border-radius: 2px;
}

.tool-btn svg {
    color: #F68121;
    margin-bottom: 0.75rem;
    width: 48px;
    height: 48px;
}

.tool-btn h3 {
    color: #0D3E63;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.tool-btn p {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 2px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease-out;
    background-color: #fafafa;
}

.upload-area:hover {
    border-color: #F68121;
    background-color: rgba(246, 129, 33, 0.02);
}

.upload-area.drag-over {
    border-color: #F68121;
    background-color: rgba(246, 129, 33, 0.05);
    transform: scale(1.01);
}

.upload-area svg {
    color: #999;
    margin-bottom: 1rem;
    width: 64px;
    height: 64px;
}

.upload-area h3 {
    color: #0D3E63;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.upload-area p {
    color: #666;
}

/* File List */
.file-list {
    margin-top: 1.5rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    margin-bottom: 0.75rem;
    background-color: white;
    transition: all 0.25s ease-out;
}

.file-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.file-info {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 500;
    color: #0D3E63;
    font-size: 0.95rem;
}

.file-size {
    font-size: 0.875rem;
    color: #999;
    margin-top: 0.25rem;
}

.remove-btn {
    background: none;
    border: none;
    color: #EF4444;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: all 0.25s ease-out;
}

.remove-btn:hover {
    color: #DC2626;
    transform: scale(1.1);
}

/* Tool Options */
.tool-options {
    margin-bottom: 2rem;
}

.tool-options h3 {
    margin-bottom: 1rem;
    color: #0D3E63;
    font-size: 1.125rem;
    font-weight: 600;
}

.radio-option {
    display: flex;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.25s ease-out;
    background-color: white;
}

.radio-option:hover {
    border-color: #00599B;
    box-shadow: 0 2px 4px rgba(0, 89, 155, 0.1);
}

.radio-option input[type="radio"] {
    margin-right: 1rem;
    accent-color: #F68121;
}

.radio-option input[type="radio"]:checked ~ .radio-label {
    color: #00599B;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: #F68121;
    background-color: rgba(246, 129, 33, 0.05);
}

.radio-label {
    display: flex;
    flex-direction: column;
}

.radio-label strong {
    color: #0D3E63;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.radio-label small {
    color: #666;
    font-size: 0.875rem;
}

/* Input Fields */
input[type="text"],
input[type="number"] {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
    background-color: white;
    transition: all 0.25s ease-out;
}

input[type="text"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #F68121;
    box-shadow: 0 0 0 3px rgba(246, 129, 33, 0.1);
}

/* Buttons - LogicLine Style */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 2px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease-out;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-primary {
    background-color: #F68121;
    color: white;
}

.btn-primary:hover {
    background-color: #E56A0A;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(246, 129, 33, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(246, 129, 33, 0.2);
}

.btn-secondary {
    background-color: white;
    color: #00599B;
    border: 2px solid #00599B;
}

.btn-secondary:hover {
    background-color: #00599B;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 89, 155, 0.2);
}

.btn-success {
    background-color: #10B981;
    color: white;
}

.btn-success:hover {
    background-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.2);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Results */
.results-list {
    margin: 1.5rem 0;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    margin-bottom: 1rem;
    background-color: white;
    transition: all 0.25s ease-out;
}

.result-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.result-info {
    flex: 1;
}

.result-filename {
    font-weight: 600;
    color: #0D3E63;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.result-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #666;
}

.compression-rate {
    color: #10B981;
    font-weight: 600;
}

.download-btn {
    padding: 0.625rem 1.25rem;
    background-color: #10B981;
    color: white;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.25s ease-out;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-btn:hover {
    background-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.2);
}

.download-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #F68121;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    color: white;
    font-size: 1.125rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: #00599B;
    border-top: none;
    padding: 1.5rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.footer p {
    margin: 0;
}

/* Login Page Specific */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.login-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    border: 1px solid #e0e0e0;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: #0D3E63;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .result-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .result-stats {
        justify-content: center;
    }
    
    .download-actions {
        flex-direction: column;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .header-title {
        font-size: 1rem;
    }
    
    .header-logo {
        width: 20px;
        height: 20px;
    }
}

/* Additional ImageFinder-style components */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 2px;
    border: 1px solid;
    font-size: 0.875rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: #10B981;
    color: #059669;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: #EF4444;
    color: #DC2626;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: #3B82F6;
    color: #2563EB;
}

/* Focus states */
*:focus-visible {
    outline: 2px solid #F68121;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: rgba(246, 129, 33, 0.2);
    color: #0D3E63;
}