/* Custom Styles for PDF Compressor */
:root {
    --primary-color: #0d6efd;
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
}

[data-bs-theme="dark"] {
    --primary-color: #0d6efd;
    --bg-color: #212529;
    --text-color: #f8f9fa;
    --card-bg: #2c3034;
    --border-color: #495057;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

/* Glassmorphism effects */
.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-bs-theme="dark"] .glass-panel {
    background: rgba(44, 48, 52, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Drag and Drop Zone */
.drop-zone {
    border: 2px dashed var(--primary-color) !important;
    background-color: rgba(13, 110, 253, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.drop-zone:hover, .drop-zone.dragover {
    background-color: rgba(13, 110, 253, 0.1);
    transform: translateY(-2px);
    border-color: #0a58ca !important;
}

/* Custom Radios */
.custom-radio input[type="radio"] {
    display: none;
}

.custom-radio label {
    cursor: pointer;
    transition: all 0.2s;
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.custom-radio input[type="radio"]:checked + label {
    border-color: var(--primary-color) !important;
    background-color: rgba(13, 110, 253, 0.05);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(25, 135, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}

.btn-hover {
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

/* Dark mode overrides */
[data-bs-theme="dark"] .bg-light-subtle {
    background-color: #343a40 !important;
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .bg-body-tertiary {
    background-color: #1a1d20 !important;
}

[data-bs-theme="dark"] .custom-accordion .accordion-button {
    background-color: #2c3034;
    color: #fff;
}
[data-bs-theme="dark"] .custom-accordion .accordion-button:not(.collapsed) {
    background-color: #343a40;
    color: #0d6efd;
}
[data-bs-theme="dark"] .custom-accordion .accordion-body {
    background-color: #2c3034;
    color: #ced4da;
}

[data-bs-theme="dark"] .stats-box {
    border-color: #495057 !important;
}

.social-links a.hover-white:hover {
    color: #fff !important;
    transition: color 0.2s;
}

footer a.hover-white:hover {
    color: #fff !important;
    text-decoration: underline !important;
}
