/*
 * School Profile CSS - PPID SMAN 1 Lubuk Sikaping
 * Styling khusus untuk halaman profil sekolah
 */

/* ===== GRADIENT BACKGROUNDS ===== */
.bg-gradient-primary {
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

/* ===== SERVICE ITEMS ===== */
.service-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item:hover {
    background: rgba(0, 86, 179, 0.05);
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.service-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    background: rgba(0, 86, 179, 0.2);
    transform: scale(1.1);
}

.service-icon i {
    font-size: 1.2rem;
}

/* ===== INFO ITEMS ===== */
.info-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item:hover {
    background: rgba(23, 162, 184, 0.05);
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.info-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(23, 162, 184, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.info-item:hover .info-icon {
    background: rgba(23, 162, 184, 0.2);
    transform: scale(1.1);
}

.info-icon i {
    font-size: 1rem;
}

/* ===== CONTACT ITEMS ===== */
.contact-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item:hover {
    background: rgba(255, 193, 7, 0.05);
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.contact-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: rgba(255, 193, 7, 0.2);
    transform: scale(1.1);
}

.contact-icon i {
    font-size: 1rem;
}

/* ===== CARD ENHANCEMENTS ===== */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* ===== LIST GROUP ENHANCEMENTS ===== */
.list-group-item {
    border: none;
    border-radius: 0.5rem !important;
    margin-bottom: 0.5rem;
    background: rgba(248, 249, 250, 0.8);
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}

.list-group-item:hover {
    background: rgba(0, 86, 179, 0.1);
    transform: translateX(5px);
    color: var(--color-primary);
}

.list-group-item-action {
    color: var(--color-dark);
    text-decoration: none;
}

.list-group-item-action:hover {
    color: var(--color-primary);
}

/* ===== SCHOOL STATISTICS ===== */
.stat-box {
    padding: 1.5rem 1rem;
    border-radius: 0.75rem;
    background: rgba(248, 249, 250, 0.8);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.stat-box:hover {
    background: rgba(0, 86, 179, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon-school {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.stat-box:hover .stat-icon-school {
    transform: scale(1.1);
}

.stat-number-school {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label-school {
    font-size: 0.9rem;
    color: var(--color-secondary);
    margin-bottom: 0;
    font-weight: 500;
}

/* ===== ACHIEVEMENT ITEMS ===== */
.achievement-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 0.5rem;
    background: rgba(248, 249, 250, 0.8);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.achievement-item:hover {
    background: rgba(0, 86, 179, 0.05);
    transform: translateX(5px);
}

.achievement-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    margin-right: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.achievement-item:hover .achievement-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.achievement-icon i {
    font-size: 1.5rem;
}

.achievement-content h6 {
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--color-dark);
}

.achievement-content small {
    color: var(--color-secondary);
}

/* ===== SIDEBAR STATISTICS ===== */
.stat-box-sidebar {
    padding: 1rem 0.5rem;
    border-radius: 0.5rem;
    background: rgba(248, 249, 250, 0.8);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.stat-box-sidebar:hover {
    background: rgba(0, 86, 179, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-icon-sidebar {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.stat-box-sidebar:hover .stat-icon-sidebar {
    transform: scale(1.1);
}

.stat-number-sidebar {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label-sidebar {
    font-size: 0.8rem;
    color: var(--color-secondary);
    margin-bottom: 0;
    font-weight: 500;
}

/* ===== SIDEBAR ACHIEVEMENT ITEMS ===== */
.achievement-item-sidebar {
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(248, 249, 250, 0.8);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.achievement-item-sidebar:hover {
    background: rgba(0, 86, 179, 0.05);
    transform: translateX(3px);
}

.achievement-icon-sidebar {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.achievement-item-sidebar:hover .achievement-icon-sidebar {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.achievement-icon-sidebar i {
    font-size: 1rem;
}

.achievement-item-sidebar h6 {
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.9rem;
}

.achievement-item-sidebar small {
    color: var(--color-secondary);
    font-size: 0.75rem;
}

/* ===== GRADIENT BACKGROUNDS FOR SIDEBAR ===== */
.bg-gradient-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

/* ===== TEXT COLORS ===== */
.text-purple {
    color: #6f42c1 !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    .card-header {
        padding: 1rem 1.25rem;
    }

    .service-icon,
    .info-icon,
    .contact-icon {
        width: 30px;
        height: 30px;
    }

    .service-icon i,
    .info-icon i,
    .contact-icon i {
        font-size: 0.9rem;
    }

    .service-item,
    .info-item,
    .contact-item {
        padding: 0.5rem 0;
    }

    .stat-box {
        padding: 1rem 0.5rem;
        margin-bottom: 1rem;
    }

    .stat-icon-school {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .stat-number-school {
        font-size: 1.5rem;
    }

    .stat-label-school {
        font-size: 0.8rem;
    }

    .achievement-item {
        padding: 0.75rem;
    }

    .achievement-icon {
        width: 40px;
        height: 40px;
        margin-right: 0.75rem;
    }

    .achievement-icon i {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    .card-header {
        padding: 0.75rem 1rem;
    }

    .card-header h5 {
        font-size: 1rem;
    }

    .service-item h6,
    .info-item h6,
    .contact-item h6 {
        font-size: 0.9rem;
    }

    .service-item small,
    .info-item small,
    .contact-item small {
        font-size: 0.8rem;
    }

    .stat-box {
        padding: 0.75rem 0.5rem;
    }

    .stat-icon-school {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .stat-number-school {
        font-size: 1.25rem;
    }

    .stat-label-school {
        font-size: 0.75rem;
    }

    .achievement-item {
        padding: 0.5rem;
        flex-direction: column;
        text-align: center;
    }

    .achievement-icon {
        width: 35px;
        height: 35px;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .achievement-icon i {
        font-size: 1rem;
    }

    .achievement-content h6 {
        font-size: 0.9rem;
    }

    .achievement-content small {
        font-size: 0.75rem;
    }

    /* Sidebar responsive */
    .stat-box-sidebar {
        padding: 0.75rem 0.5rem;
    }

    .stat-icon-sidebar {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .stat-number-sidebar {
        font-size: 1.1rem;
    }

    .stat-label-sidebar {
        font-size: 0.75rem;
    }

    .achievement-item-sidebar {
        padding: 0.5rem;
    }

    .achievement-icon-sidebar {
        width: 30px;
        height: 30px;
    }

    .achievement-icon-sidebar i {
        font-size: 0.9rem;
    }

    .achievement-item-sidebar h6 {
        font-size: 0.85rem;
    }

    .achievement-item-sidebar small {
        font-size: 0.7rem;
    }
}

/* ===== ANIMATION EFFECTS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

/* ===== HOVER EFFECTS ===== */
.service-item:hover h6,
.info-item:hover h6,
.contact-item:hover h6 {
    color: var(--color-primary);
    transition: color 0.3s ease;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .card,
    .service-item,
    .info-item,
    .contact-item,
    .service-icon,
    .info-icon,
    .contact-icon {
        animation: none !important;
        transition: none !important;
    }
    
    .card:hover,
    .list-group-item:hover {
        transform: none !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    
    .card-header {
        background: #f8f9fa !important;
        color: #000 !important;
    }
    
    .service-icon,
    .info-icon,
    .contact-icon {
        background: #f8f9fa !important;
    }
}
