/* Custom Styles for Merge PDF Tool */
:root {
    --primary: #E63946;
    --primary-hover: #c1122a;
    --heading: #212529;
    --paragraph: #495057;
}

/* Custom utility classes */
.cta-button {
    background: linear-gradient(135deg, var(--primary), #FF6B6B);
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

.cta-button:active {
    transform: scale(0.98);
}

.secondary-button {
    background: white;
    color: var(--heading);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.dark .secondary-button {
    background: #374151;
    color: white;
    border-color: #4b5563;
}

.dark .secondary-button:hover {
    border-color: var(--primary);
}

/* File card styles */
.file-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    background: white;
}

.dark .file-card {
    background: #1f2937;
    border-color: #374151;
}

.file-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.dark .file-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Drag and drop styles */
.sortable-ghost {
    opacity: 0.4;
}

.sortable-chosen {
    transform: rotate(2deg);
}

/* Link styles */
a {
    color: var(--primary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Upload area enhanced styles */
#uploadArea.drag-over {
    border-color: var(--primary);
    background-color: rgba(230, 57, 70, 0.05);
}

.dark #uploadArea.drag-over {
    background-color: rgba(230, 57, 70, 0.1);
}

/* Progress bar animation */
#progressBar {
    transition: width 0.5s ease;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 640px) {
    #uploadArea {
        padding: 1.5rem;
    }
    
    .file-card {
        padding: 1rem;
    }
}

/* Focus styles for accessibility */
button:focus, input:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
    background: #374151;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #6b7280;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Animation for file cards */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.file-card {
    animation: fadeIn 0.3s ease-out;
}

/* Sticky sidebar */
.sticky {
    position: sticky;
}