/* 
 * ABU Conference - Custom CSS Styles
 * Created for the ABU Institute of Administration Conference 2025
 */

/* =================== Global Styles =================== */
:root {
    --primary-color: #000080; /* ABU Blue */
    --secondary-color: #28a745; /* Green */
    --accent-color: #ffc107; /* Gold */
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Playfair Display', serif;
}

body {
    font-family: var(--font-primary);
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Override Bootstrap colors */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #053b6a;
    border-color: #042e53;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Common Elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: #333;
}

.section-title {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
}

.card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-header {
    border-bottom: none;
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* =================== Header & Navigation =================== */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-family: var(--font-secondary);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
}

/* =================== Hero Section =================== */
.hero-section {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, #07487F 0%, #0277BD 100%);
    padding: 5rem 0;
    color: #fff;
}

.hero-section h1 {
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-section h2 {
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.countdown-timer div {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 8px;
    min-width: 80px;
}

.countdown-timer h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0;
}

/* =================== About Section =================== */
#about {
    background-color: #fff;
}

/* =================== Timeline =================== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    height: calc(100% - 20px);
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -38px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-date {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.timeline-content {
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* =================== Sub-themes Section =================== */
.theme-icon {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(7, 72, 127, 0.1);
    margin-bottom: 15px;
}

/* =================== Speakers Section =================== */
.speaker-card {
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
}

.speaker-img-container {
    height: 200px;
    overflow: hidden;
}

.speaker-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.speaker-card:hover .speaker-img-container img {
    transform: scale(1.1);
}

/* =================== Venue Section =================== */
.venue-img-container {
    height: 100%;
    overflow: hidden;
}

.venue-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =================== Contact Section =================== */
.contact-person {
    padding: 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.contact-person:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    display: inline-block;
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(7, 72, 127, 0.1);
    margin-bottom: 15px;
}

/* =================== Footer =================== */
.footer {
    background-color: var(--dark-color);
    color: #fff;
    margin-top: 3rem;
}

.footer h5 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fff;
}

/* =================== Forms =================== */
.form-control {
    border-radius: 4px;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(7, 72, 127, 0.25);
}

.form-label {
    font-weight: 500;
}

.form-text {
    font-size: 0.85rem;
}

/* =================== Authentication Pages =================== */
.auth-form {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

/* =================== Dashboard =================== */
.avatar-circle {
    width: 100px;
    height: 100px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.dashboard-nav .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.dashboard-nav .nav-link:hover,
.dashboard-nav .nav-link.active {
    background-color: rgba(7, 72, 127, 0.1);
    color: var(--primary-color);
}

.dashboard-nav .nav-link i {
    width: 24px;
}

.stat-card {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 15px;
}

.activity-list .list-group-item {
    padding: 15px;
    border-left: none;
    border-right: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 15px;
}

/* =================== Abstract Submission =================== */
.co-author-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    position: relative;
}

.co-author-card .remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* =================== Admin Dashboard =================== */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

/* =================== Responsive Adjustments =================== */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .hero-section {
        text-align: center;
        padding: 3rem 0;
    }
    
    .countdown-timer {
        justify-content: center;
    }
    
    .sidebar {
        position: static;
        height: auto;
    }
}

@media (max-width: 767.98px) {
    .section-title::after {
        left: 0;
        transform: none;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-item:before {
        left: -28px;
    }
    
    .speaker-img-container {
        height: 250px;
    }
}

@media (max-width: 575.98px) {
    .countdown-timer div {
        min-width: 60px;
        padding: 10px;
    }
    
    .countdown-timer h3 {
        font-size: 1.5rem;
    }
}

/* =================== Utility Classes =================== */
.bg-primary-light {
    background-color: rgba(7, 72, 127, 0.1);
}

.bg-success-light {
    background-color: rgba(40, 167, 69, 0.1);
}

.bg-info-light {
    background-color: rgba(23, 162, 184, 0.1);
}

.bg-warning-light {
    background-color: rgba(255, 193, 7, 0.1);
}

.text-primary-light {
    color: rgba(7, 72, 127, 0.7);
}

/* Certificate Verification */
.verification-icon {
    display: inline-block;
    padding: 30px;
    border-radius: 50%;
    background-color: #f8f9fa;
    margin-bottom: 20px;
}

.verification-icon.verified {
    background-color: #d4edda;
}

/* Profile Page */
.profile-pic-container {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 50%;
    border: 5px solid rgba(7, 72, 127, 0.1);
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-pic-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    background-color: #f0f0f0;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}