/* Custom CSS for SMK Swadaya Global School */

/* Security Notice */
.security-notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 14px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sidebar Styling */
.sidebar {
    background-color: #0d6efd !important;
}

.sidebar .nav-link {
    color: white !important;
}

.sidebar .nav-link:hover, 
.sidebar .nav-link.active {
    color: #e9ecef !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.sidebar .dropdown-menu {
    background-color: #0d6efd;
}

.sidebar .dropdown-item {
    color: white;
}

.sidebar .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar hr {
    border-color: rgba(255, 255, 255, 0.2);
}

.sidebar h5 {
    color: white !important;
}

/* Article Card */
.article-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.article-img {
    height: 200px;
    object-fit: cover;
}

.article-title {
    color: #0d6efd;
    font-weight: 600;
}

/* Rating Stars */
.rating-stars i.fas.fa-star {
    color: #ffc107;
}

.rating-stars i.far.fa-star {
    color: #ddd;
}

.rating-stars i.fas.fa-star-half-alt {
    color: #ffc107;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    font-size: 30px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s;
}

.rating-input input[type="radio"]:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
    color: #ffc107;
}

/* Marquee for motto */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    background-color: #f8f9fa;
    padding: 10px 0;
}

.marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
    font-weight: bold;
    color: #0d6efd;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* Video and Photo Gallery */
.video-item, .photo-item {
    transition: transform 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.video-item:hover, .photo-item:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.video-thumbnail::before {
    content: "\f04b";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.7);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.3s;
}

.video-thumbnail:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-thumbnail img {
    transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

/* Search Bar */
#search-input {
    border-radius: 30px 0 0 30px;
    border: 2px solid #0d6efd;
}

#search-btn {
    border-radius: 0 30px 30px 0;
    background-color: #0d6efd;
    border: 2px solid #0d6efd;
}

/* Pagination */
.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.page-link {
    color: #0d6efd;
}

.page-link:hover {
    color: #0a58ca;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.school-logo {
    max-width: 100px;
    max-height: 100px;
    width: auto;
    height: auto;
}

.school-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 15px;
}

.system-info {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .marquee-text {
        font-size: 1rem;
    }
    
    .article-img {
        height: 150px;
    }
    
    .security-notice {
        bottom: 10px;
        right: 10px;
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .login-card {
        max-width: 100%;
    }
}