/**
 * Custom CSS for New IFRS Templates
 * This file contains custom styles that complement Tailwind CSS
 */

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

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0B59A5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Brand heading styles */
.brand-heading {
    font-family: 'Spectral', serif;
    font-weight: 700;
}

/* IFRS brand colors */
.ifrs-blue {
    color: #0B59A5;
}

.ifrs-red {
    color: #9D243A;
}

/* Sidebar transitions */
#sidebar {
    transition: transform 0.3s ease-in-out;
}

#sidebar-overlay {
    transition: opacity 0.3s ease-in-out;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
}

/* Button focus states */
button:focus,
a:focus {
    outline: 2px solid #0B59A5;
    outline-offset: 2px;
}

/* Form input focus */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    ring: 2px;
    ring-color: #0B59A5;
}

/* Mobile responsive adjustments */
@media screen and (max-width: 678px) {
    #topic-details img {
        width: 100% !important;
        height: 100% !important;
    }
}

/* Print styles */
@media print {

    #sidebar,
    #sidebar-toggle,
    #sidebar-overlay,
    header,
    footer {
        display: none !important;
    }

    #main-content {
        margin-left: 0 !important;
    }
}