/*
 * Page Consistency CSS - PPID SMAN 1 Lubuk Sikaping
 * Ensures consistent styling across all pages
 */

/* ===== PAGE TITLE SECTION ===== */
.page-title {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 4rem 0 2rem 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.page-title .container {
    position: relative;
    z-index: 2;
}

.page-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-title .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    margin-bottom: 1.5rem;
}

.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    opacity: 0.6;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: white;
    text-decoration: underline;
}

.breadcrumbs .current {
    color: white;
    font-weight: 500;
}

/* ===== SECTION STYLING ===== */
.section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ===== CARD CONSISTENCY ===== */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-title {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.card-body {
    padding: 2rem;
}

/* ===== INFO ITEMS (for profil sekolah) ===== */
.info-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 0.75rem;
    background: rgba(248, 249, 250, 0.8);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(0, 86, 179, 0.05);
    transform: translateY(-3px);
}

.info-icon {
    margin-bottom: 1rem;
}

.info-label {
    font-size: 0.875rem;
    color: var(--color-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
}

/* ===== VISION MISSION ITEMS ===== */
.vision-mission-item {
    padding: 1.5rem;
    border-radius: 0.75rem;
    background: rgba(248, 249, 250, 0.8);
    transition: all 0.3s ease;
    height: 100%;
}

.vision-mission-item:hover {
    background: rgba(0, 86, 179, 0.05);
    transform: translateY(-3px);
}

.vision-mission-item h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.vision-mission-item p {
    color: var(--color-dark);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== CONTACT ITEMS ===== */
.contact-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.contact-item p {
    margin-bottom: 0;
    color: var(--color-secondary);
}

.contact-item a {
    color: var(--color-primary);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ===== FORM STYLING (for permohonan) ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.15);
    background: white;
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.15);
    background: white;
}

/* ===== ALERT STYLING ===== */
.alert {
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-left-color: var(--color-success);
    color: #155724;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: var(--color-danger);
    color: #721c24;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    border-left-color: var(--color-info);
    color: #0c5460;
}

/* ===== BUTTON CONSISTENCY ===== */
.btn {
    border-radius: 0.75rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #003d73 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--color-success) 0%, #1e7e34 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
}

/* ===== LIST GROUP STYLING ===== */
.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;
}

.list-group-item:hover {
    background: rgba(var(--color-primary), 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);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .page-title {
        padding: 3rem 0 1.5rem 0;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
    
    .page-title .lead {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .info-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .page-title h1 {
        font-size: 1.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}
