/**
 * Custom Component Styles
 */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Header Styles */
header {
    transition: box-shadow 0.3s ease;
}

header.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Navigation Active State */
.nav-link.active {
    color: rgb(234, 88, 12);
    font-weight: 600;
}

/* Button Hover Effects */
button:not(:disabled):hover,
a.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Form Inputs */
input:focus,
textarea:focus,
select:focus {
    border-color: rgb(234, 88, 12);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Image Hover Effects */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

/* Section Animations */
section {
    animation: fadeInUp 0.6s ease-out;
}

/* Mobile Menu Animation */
#mobileMenu {
    animation: slideInLeft 0.3s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ea580c;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d84a0c;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 700;
    line-height: 1.2;
}

p {
    line-height: 1.6;
}

/* Blockquote */
blockquote {
    border-left: 4px solid rgb(234, 88, 12);
    padding-left: 1.5rem;
    font-style: italic;
    color: rgb(75, 85, 99);
}

/* Code Block */
code {
    background-color: rgb(243, 244, 246);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    color: rgb(234, 88, 12);
}

/* Table Styling */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}

table th {
    background-color: rgb(243, 244, 246);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgb(209, 213, 219);
}

table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgb(209, 213, 219);
}

table tbody tr:hover {
    background-color: rgb(249, 250, 251);
}

/* Links */
a {
    color: rgb(234, 88, 12);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: rgb(194, 65, 12);
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-primary {
    background-color: rgb(254, 226, 226);
    color: rgb(220, 38, 38);
}

.badge-success {
    background-color: rgb(220, 252, 231);
    color: rgb(5, 150, 105);
}

.badge-warning {
    background-color: rgb(254, 243, 199);
    color: rgb(180, 83, 9);
}

.badge-info {
    background-color: rgb(225, 245, 254);
    color: rgb(3, 102, 214);
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Container Padding */
.container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    nav {
        display: none;
    }

    body {
        background-color: white;
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}
