/* Custom styles for Design Meter */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

/* Drag and drop styles */
#dropZone.drag-over {
    border-color: #a855f7;
    background-color: rgba(168, 85, 247, 0.2);
    transform: scale(1.02);
}

/* File input styling */
#dropZone {
    transition: all 0.3s ease;
}

/* Animation for loading spinner */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
    }
}

.loading-active {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Issue card animations */
.issue-card {
    transition: all 0.3s ease;
}

.issue-card.checked {
    opacity: 0.5;
}

.issue-card.checked h4 {
    text-decoration: line-through;
}

/* Checkbox animation */
.issue-checkbox {
    transition: all 0.2s ease;
}

.issue-checkbox[data-checked="true"] {
    background-color: rgba(34, 197, 94, 0.3);
    border-color: #22c55e;
}

/* Code block styling */
pre {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    tab-size: 2;
}

pre code {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Button hover effects */
button, a {
    transition: all 0.2s ease;
}

/* Focus states for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
}

/* Image preview animation */
#previewContainer {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Solution card hover effect */
.solution-card:hover {
    transform: translateY(-2px);
}

/* Mark as resolved button */
.mark-resolved-btn.resolved {
    color: #22c55e;
}

.mark-resolved-btn.resolved svg {
    fill: currentColor;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .bg-white\/10 {
        background: #f5f5f5;
        border: 1px solid #ddd;
    }
    
    button, a[href="index.php"] {
        display: none;
    }
}
