/* Custom styles for PSN website */

/* Consistent container margins for headers */
.main-header .container,
.main-nav .container {
    max-width: 1140px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Ensure Bootstrap container consistency across all pages */
.container {
    max-width: 1140px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Ticker separator styles */
.ticker-item {
    position: relative;
}

.ticker-item:after {
    content: "★";
    margin-left: 30px;
    color: #FFB845;
    opacity: 0.8;
}

.ticker-item:last-child:after {
    display: none;
}

/* Navigation spacing */
.main-nav {
    margin-bottom: 30px !important;
}

/* Header button colors */
.btn-donation,
.btn-join {
    color: #000 !important;
}

/* Mission & Vision Section Styles */
.mission-vision {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.mission-vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23007bff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%2328a745" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23007bff" opacity="0.05"/><circle cx="10" cy="50" r="0.5" fill="%2328a745" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.mission-card, .vision-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: none;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.divider {
    height: 3px;
    width: 60px;
    border-radius: 2px;
    margin-top: 10px;
}

.mission-points .mission-point {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.mission-points .mission-point:hover {
    background: #e3f2fd;
    border-left-color: #007bff;
    transform: translateX(5px);
}

.mission-bullet i {
    font-size: 1.2rem;
    margin-top: 5px;
}

.vision-content {
    position: relative;
}

.vision-goals {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
}

.goal-item {
    padding: 15px;
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.goal-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.goal-icon i {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 50%;
}

.vision-stats {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
}

.stat-item h4 {
    font-weight: 700;
    font-size: 2rem;
}

.stat-item p {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mission-card .card-body, .vision-card .card-body {
        padding: 2rem !important;
    }
    
    .mission-points .mission-point {
        padding: 12px;
    }
    
    .vision-goals {
        padding: 20px;
    }
    
    .goal-item {
        padding: 12px;
    }
    
    .vision-stats {
        padding: 20px;
    }
    
    .stat-item h4 {
        font-size: 1.5rem;
    }
}

/* Image styles */
.president-image img {
    max-width: 300px;
    border: 4px solid #009B77;
}

.hero-slider .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-slider .item {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-section {
    position: relative;
    overflow: hidden;
}

/* Responsive slider adjustments */
@media (max-width: 1200px) {
    .hero-slider .item {
        height: 500px;
    }
}

@media (max-width: 992px) {
    .hero-slider .item {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .hero-slider .item {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .hero-slider .item {
        height: 350px;
    }
} 
/* Chat Styles */
.chat-container {
    height: calc(100vh - 200px);
    background: #f8f9fa;
    margin-top: -30px;
}

.contacts-header {
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    background: #fff;
}

.contacts-list {
    height: calc(100vh - 350px);
    overflow-y: auto;
}

.contact-item {
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
    background: #fff;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #f8f9fa;
}

.contact-item.active {
    background: #e9ecef;
}

.chat-header {
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
}

.chat-messages {
    height: calc(100vh - 400px);
    overflow-y: auto;
    padding: 20px;
}

.message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.message.sent {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 10px;
}

.message-content {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.message.sent .message-content {
    background: #007bff;
    color: #fff;
}

.message.sent .message-content .text-muted {
    color: rgba(255,255,255,0.7) !important;
}

.chat-input {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #dee2e6;
}

.typing-indicator {
    display: none;
    padding: 10px 20px;
}

.typing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    background: #6c757d;
    border-radius: 50%;
    animation: typing 1s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.online-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    margin-right: 5px;
}

/* Video Call Styles */
.video-call-container {
    position: relative;
    width: 100%;
    height: 70vh;
    background: #000;
}

.main-video {
    width: 100%;
    height: 100%;
}

.self-video {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 150px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #fff;
}

.call-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.call-controls .btn {
    width: 50px;
    height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Custom hover effect for administrative committee submenus */
.admin-submenu:hover {
    background: transparent !important;
    color: #007bff !important;
}
