/* Custom CSS for Pharmacy Department Website */
:root {
    /* @tweakable primary color for the website theme */
    --primary-color: #0d6efd;
    /* @tweakable secondary color for accents */
    --secondary-color: #ffc107;
    /* @tweakable success color for positive elements */
    --success-color: #198754;
    /* @tweakable dark color for text and backgrounds */
    --dark-color: #212529;
    /* @tweakable light color for backgrounds */
    --light-color: #f8f9fa;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding-top: 76px;
}

.navbar-brand {
    font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* @tweakable hero gradient start color */
    --gradient-start: #667eea;
    /* @tweakable hero gradient end color */
    --gradient-end: #764ba2;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 110, 253, 0.8);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Banner Slider Styles */
.banner-slider {
    /* @tweakable banner slider height */
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--dark-color);
}

.banner-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    /* @tweakable slide transition duration */
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* @tweakable banner overlay opacity */
    background: rgba(13, 110, 253, 0.7);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: white;
    /* @tweakable banner content max width */
    max-width: 800px;
    padding: 0 2rem;
}

.banner-title {
    /* @tweakable banner title font size */
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    /* @tweakable banner title animation duration */
    animation: slideInFromLeft 1s ease-out;
}

.banner-subtitle {
    /* @tweakable banner subtitle font size */
    font-size: 1.8rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    animation: slideInFromLeft 1s ease-out 0.3s both;
}

.banner-description {
    /* @tweakable banner description font size */
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    animation: slideInFromLeft 1s ease-out 0.6s both;
}

.banner-button {
    display: inline-block;
    /* @tweakable banner button padding */
    padding: 1rem 2.5rem;
    background: var(--secondary-color);
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    /* @tweakable banner button font size */
    font-size: 1.1rem;
    transition: all 0.3s ease;
    animation: slideInFromLeft 1s ease-out 0.9s both;
}

.banner-button:hover {
    background: #e0a800;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Banner Controls */
.banner-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 3;
    transform: translateY(-50%);
}

.banner-btn {
    /* @tweakable banner control button size */
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: white;
    /* @tweakable banner control icon size */
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.banner-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.banner-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Banner Indicators */
.banner-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
    /* @tweakable indicator container padding */
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.banner-indicator {
    /* @tweakable banner indicator size */
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    /* @tweakable indicator hover effect */
    border: 2px solid transparent;
}

.banner-indicator.active {
    background: var(--secondary-color);
    /* @tweakable active indicator scale */
    transform: scale(1.3);
    border-color: rgba(255,255,255,0.3);
}

.banner-indicator:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.1);
}

/* Banner Animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Auto-play pause on hover */
.banner-slider:hover .banner-slide {
    /* @tweakable banner auto-play pause duration */
    animation-play-state: paused;
}

/* Progressive enhancement for multiple slides */
@media (max-width: 768px) {
    .banner-indicators {
        /* @tweakable mobile indicator spacing */
        gap: 0.5rem;
        padding: 0.25rem 0.75rem;
    }
    
    .banner-indicator {
        /* @tweakable mobile indicator size */
        width: 8px;
        height: 8px;
    }
    
    .banner-controls {
        padding: 0 1rem;
    }
    
    .banner-btn {
        /* @tweakable mobile control button size */
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Animations */
.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.animate-fade-in-delay-3 {
    animation: fadeInUp 1s ease-out 0.9s both;
}

/* Dynamic Content Loading */
.content-loader {
    /* @tweakable loading animation duration in seconds */
    animation-duration: 1.5s;
    animation-name: fadeInUp;
    animation-fill-mode: both;
}

.content-loader.delay-1 {
    /* @tweakable first content delay in seconds */
    animation-delay: 0.2s;
}

.content-loader.delay-2 {
    /* @tweakable second content delay in seconds */
    animation-delay: 0.4s;
}

.content-loader.delay-3 {
    /* @tweakable third content delay in seconds */
    animation-delay: 0.6s;
}

/* Enhanced Card Animations */
.card-hover-effect {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* @tweakable card hover scale factor */
    --hover-scale: 1.05;
    /* @tweakable card hover shadow blur radius */
    --hover-shadow-blur: 25px;
}

.card-hover-effect:hover {
    transform: translateY(-8px) scale(var(--hover-scale));
    box-shadow: 0 var(--hover-shadow-blur) 50px rgba(0,0,0,0.15);
}

/* Stat Cards */
.stat-card {
    padding: 2rem 1rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Faculty Cards */
.faculty-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.faculty-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

.faculty-card .card-body {
    padding: 1.5rem;
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Buttons */
.btn {
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Custom utilities */
.shadow-sm {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.rounded {
    border-radius: 15px !important;
}

/* Form Styles */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Admin Panel Styles */
.admin-sidebar {
    background: var(--dark-color);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.admin-content {
    margin-left: 250px;
    padding: 2rem;
}

.sidebar-link {
    color: rgba(255,255,255,0.8);
    padding: 0.75rem 1rem;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: white;
    background-color: rgba(255,255,255,0.1);
    border-left-color: var(--secondary-color);
}

/* Faculty Dashboard Styles */
.faculty-sidebar {
    background: var(--success-color);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.faculty-content {
    margin-left: 250px;
    padding: 2rem;
}

.faculty-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.profile-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.3);
}

/* Faculty Sidebar Links */
.faculty-sidebar .sidebar-link {
    color: rgba(255,255,255,0.9);
    padding: 0.75rem 1rem;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    border-radius: 0 25px 25px 0;
    margin: 2px 0;
}

.faculty-sidebar .sidebar-link:hover,
.faculty-sidebar .sidebar-link.active {
    color: white;
    background-color: rgba(255,255,255,0.15);
    border-left-color: var(--secondary-color);
    transform: translateX(5px);
}

/* Data Tables */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.table thead th {
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
}

/* Login Forms */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    display: flex;
    align-items: center;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Interactive Elements */
.interactive-button {
    position: relative;
    overflow: hidden;
    /* @tweakable button animation speed in milliseconds */
    transition: all 300ms ease;
}

.interactive-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    /* @tweakable button shine effect color */
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.interactive-button:hover::before {
    left: 100%;
}

/* Real-time Data Indicators */
.data-indicator {
    position: relative;
    /* @tweakable data indicator pulse animation duration */
    animation: pulse 2s infinite;
}

.data-indicator::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    /* @tweakable live data indicator color */
    background: #28a745;
    border-radius: 50%;
    animation: blink 1s infinite;
}

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

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Dynamic Grid Layout */
.dynamic-grid {
    display: grid;
    /* @tweakable grid column minimum width */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* @tweakable grid gap size */
    gap: 2rem;
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .hero-section {
        background-attachment: scroll;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-subtitle {
        font-size: 1.4rem;
    }
    
    .banner-description {
        font-size: 1rem;
    }
    
    .banner-controls {
        padding: 0 1rem;
    }
    
    .banner-btn {
        /* @tweakable mobile control button size */
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Counter Animation */
@keyframes countUp {
    from { opacity: 0; }
    to { opacity: 1; }
}

.counter {
    animation: countUp 2s ease-in-out;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success and Error Messages */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

/* Facebook Iframe Styles */
/* @tweakable Facebook iframe container width */
.facebook-iframe-container {
    max-width: 340px;
    width: 100%;
}

/* @tweakable Facebook iframe dimensions */
.facebook-iframe-container iframe {
    width: 340px;
    height: 500px;
    border-radius: 8px;
    /* @tweakable Facebook iframe border styling */
    border: 1px solid rgba(255,255,255,0.1);
    /* @tweakable Facebook iframe background for loading state */
    background: rgba(255,255,255,0.05);
}

/* @tweakable Facebook iframe responsive behavior */
@media (max-width: 768px) {
    .facebook-iframe-container iframe {
        /* @tweakable mobile Facebook iframe width */
        width: 280px;
        /* @tweakable mobile Facebook iframe height */
        height: 400px;
    }
}

/* @tweakable Facebook iframe loading animation */
.facebook-iframe-container iframe:not([src]) {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}