/* 🔁 Rotating Background Styling */
.rotating-background {
    position: fixed;
    width: 800px;
    height: 800px;
    background: url('/static/images/flower.png') no-repeat center;
    background-size: contain;
    animation: rotateBg 50s linear infinite;
    opacity: 0.7;
    z-index: -1;
}

.flower-top-right {
    top: -375px;
    right: -375px;
}

.flower-bottom-left {
    bottom: -375px;
    left: -375px;
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* 🌄 Enhanced Header Banner */
.header-banner {
    background: linear-gradient(90deg, #004085, #0069d9);
    color: white;
    border-radius: 1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    animation: fadeSlideIn 0.8s ease forwards;
    opacity: 0;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-banner h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
}

.header-banner img {
    filter: drop-shadow(1px 2px 4px rgba(0, 0, 0, 0.3));
}

.igorot-image {
    max-width: 250px;
    height: auto;
}

/* 🗂️ Category Header */
.category-header {
    background: linear-gradient(90deg, #0056b3, #007bff);
    color: white;
    text-align: center;
    font-size: clamp(16px, 4vw, 22px);
    font-weight: bold;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    word-wrap: break-word;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}
/* 🖱️ Scrollable Container */
.scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.scroll-container::-webkit-scrollbar {
    height: 8px;
}
.scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}
.scroll-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}
.scroll-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 🧱 Horizontal Layout */
.scroll-content {
    display: flex;
    gap: 15px;
}

.scroll-item {
    width: 280px;
    flex: 0 0 auto;
}

/* 💳 System Cards */
.system-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 15px;
    text-align: center;
    border-radius: 1rem;
    transition: box-shadow 0.2s ease-in-out;
}

.system-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 🖼️ System Icons */
.system-icon {
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin: 0 auto 10px;
    transition: transform 0.3s ease;
}
.system-icon:hover {
    transform: scale(1.1);
}

/* 📎 System Name & Description */
.card h5 {
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card p {
    font-size: 14px;
    color: #6c757d;
    min-height: 40px;
    margin-top: 0.5rem;
}

/* 💬 Custom Tooltip Fallback (for non-bootstrap) */
.tooltip-text {
    visibility: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    padding: 5px 10px;
    border-radius: 5px;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 14px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}



.system-card:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
