/* Custom CSS for UNBAC Institutional Website */

/* Root Variables */
:root {
    --primary-color: #003366;
    --secondary-color: #1e5799;
    --accent-color: #ffc107;
    --light-blue: #e8f4fd;
    --dark-blue: #001a33;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-gray);
    scroll-behavior: smooth;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 15px 0;
    z-index: 1050;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content h6 {
    margin-bottom: 5px;
    color: var(--accent-color);
}

.cookie-content p {
    font-size: 14px;
    opacity: 0.9;
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: var(--shadow);
}

.header-top {
    background: rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    font-size: 14px;
}

.contact-info span {
    color: rgba(255, 255, 255, 0.9);
}

.social-links {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.social-link {
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.header-main {
    padding: 30px 0;
}

.logo {
    height: 80px;
    width: auto;
}

.institution-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.institution-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.header-badge {
    text-align: center;
}

.badge-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.badge-content i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    display: block;
}

.badge-content span {
    font-size: 14px;
    font-weight: 500;
}

/* Navigation */
.main-nav {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 0;
}

.main-nav .nav-link {
    color: white !important;
    padding: 15px 20px;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 0;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    background: var(--accent-color);
    color: var(--primary-color) !important;
}

.main-nav .nav-link i {
    opacity: 0.8;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--light-blue) 0%, white 100%);
    padding: 80px 0;
    margin-bottom: 0;
}

.hero-content {
    padding-right: 30px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-actions {
    margin-top: 40px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.hero-card .card-icon {
    background: var(--light-blue);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.hero-card .card-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.hero-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.hero-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

.emergency-box {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffa000 100%);
    color: var(--primary-color);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.emergency-box .emergency-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.emergency-box .emergency-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Styles */
.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Modules Section */
.modules-section {
    padding: 80px 0;
    background: white;
}

.module-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
}

.module-card:hover::before {
    opacity: 1;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.module-card.active {
    border-color: var(--primary-color);
    box-shadow: 0 5px 25px rgba(0, 51, 102, 0.15);
}

.module-card.active::before {
    opacity: 1;
}

.module-icon {
    background: var(--light-blue);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.module-card:hover .module-icon {
    background: var(--primary-color);
    color: white;
}

.module-card.active .module-icon {
    background: var(--primary-color);
    color: white;
}

.module-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.module-card:hover .module-icon i,
.module-card.active .module-icon i {
    color: white;
}

.module-card h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.module-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.module-status {
    margin-top: auto;
    margin-bottom: 15px;
}

.module-status .badge {
    font-size: 12px;
    padding: 5px 10px;
}

/* Carousel Section */
.carousel-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.carousel-inner {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.carousel-content {
    height: 600px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.carousel-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.carousel-placeholder {
    text-align: center;
    opacity: 0.8;
}

.carousel-placeholder i {
    margin-bottom: 20px;
    opacity: 0.6;
}

.carousel-placeholder h5 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.carousel-placeholder p {
    margin-bottom: 0;
    opacity: 0.8;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

.carousel-indicators {
    margin-bottom: -50px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators .active {
    background-color: white;
}

/* Bulletin Board Section */
.bulletin-section {
    padding: 80px 0;
    background: white;
}

.bulletin-board,
.bulletin-photos {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.bulletin-header {
    background: var(--light-blue);
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.bulletin-header h4 {
    color: var(--primary-color);
    margin-bottom: 0;
    font-weight: 700;
}

.bulletin-content {
    padding: 20px;
}

.bulletin-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.bulletin-item:last-child {
    border-bottom: none;
}

.bulletin-date {
    background: var(--primary-color);
    color: white;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    margin-right: 15px;
    min-width: 60px;
}

.bulletin-date .day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}

.bulletin-date .month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.bulletin-text h6 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.bulletin-text p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 14px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
}

.photo-placeholder {
    background: var(--light-gray);
    border-radius: 10px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
    min-height: 120px;
}

.photo-placeholder:hover {
    background: var(--light-blue);
    color: var(--primary-color);
}

.photo-placeholder i {
    margin-bottom: 10px;
    opacity: 0.6;
}

.photo-placeholder span {
    font-size: 12px;
    font-weight: 500;
}

.emergency-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-hover);
}

.emergency-icon {
    background: rgba(255, 255, 255, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.emergency-icon i {
    font-size: 2rem;
    color: var(--accent-color);
}

.emergency-card h4 {
    margin-bottom: 15px;
    font-weight: 700;
}

.emergency-card p {
    opacity: 0.9;
    margin-bottom: 30px;
}

.emergency-numbers {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.emergency-number {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.emergency-number .number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.emergency-number .label {
    font-size: 14px;
    opacity: 0.9;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%);
    color: white;
}

.footer-content {
    padding: 60px 0 30px;
}

.footer-section h5 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-section h6 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-section .social-links {
    margin-top: 20px;
    justify-content: flex-start;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    font-size: 14px;
    opacity: 0.8;
}

/* Button Styles */
.btn {
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: 600;
}

.btn-warning:hover {
    background: #ffa000;
    transform: translateY(-2px);
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow-hover);
}

.modal-header {
    background: var(--light-blue);
    border-bottom: 1px solid var(--border-color);
    border-radius: 15px 15px 0 0;
}

.modal-title {
    color: var(--primary-color);
    font-weight: 700;
}

.modal-body {
    padding: 30px;
}

.modal-body h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-body h6:first-child {
    margin-top: 0;
}

.modal-body p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.modal-body ul {
    color: var(--text-light);
    margin-bottom: 15px;
}

.modal-body ul li {
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .institution-name {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cookie-banner .row {
        flex-direction: column;
        gap: 15px;
    }
    
    .cookie-banner .col-md-4 {
        text-align: center;
    }
    
    .emergency-numbers {
        flex-direction: row;
        gap: 10px;
    }
    
    .emergency-number {
        flex: 1;
    }
    
    .emergency-number .number {
        font-size: 1.2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto 10px;
    }
}

@media (max-width: 576px) {
    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .module-card {
        padding: 20px;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .emergency-card {
        padding: 30px 20px;
    }
    
    .emergency-numbers {
        flex-direction: column;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.module-card.active {
    animation: pulse 2s infinite;
}

/* Scroll animations */
.module-card,
.service-card,
.contact-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Accessibility */
.btn:focus,
.nav-link:focus,
.social-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .cookie-banner,
    .main-nav,
    .footer-content,
    .modal {
        display: none !important;
    }
    
    .main-header {
        background: white !important;
        color: black !important;
    }
    
    .hero-section {
        background: white !important;
    }
}

/* Admin Panel Styles */
.sidebar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    min-height: 100vh;
    padding: 0;
}

.sidebar-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 15px 20px;
    border-radius: 0;
    transition: var(--transition);
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

.main-content {
    padding: 20px;
}

.header h1 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.content-section {
    margin-bottom: 30px;
}

.content-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 20px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-card .card-body {
    padding: 20px;
    text-align: center;
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.table-responsive {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table th {
    background: var(--light-gray);
    color: var(--text-dark);
    font-weight: 600;
    border: none;
    padding: 15px;
}

.table td {
    border: none;
    padding: 15px;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(0, 51, 102, 0.05);
}

.badge {
    font-size: 0.8rem;
    padding: 5px 10px;
}
