:root {
    --primary-color: #ffd700;
    --secondary-color: #f5f5f5;
    --accent-color: #ff6b6b;
    --text-dark: #333;
    --text-light: #666;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.hero-section {
    background: linear-gradient(135deg, #fff 0%, #ffd700 100%);
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: var(--primary-color);
    border-radius: 15px 15px 0 0 !important;
    font-weight: 600;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.navbar-brand {
    font-size: 1.5rem;
}

.social-links a {
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

.prayer-card {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin-bottom: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.testimony-card {
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin-bottom: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-sidebar {
    background-color: #343a40;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.admin-sidebar .nav-link {
    color: #adb5bd;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.stats-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #e6c200 100%);
    color: var(--text-dark);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
}

/* Chat-specific styles */
.chat-container {
    height: calc(100vh - 200px);
    min-height: 400px;
}

.chat-messages {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
}

.message {
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 12px;
    max-width: 85%;
}

.message.own {
    background-color: var(--primary-color);
    color: var(--text-dark);
    margin-left: auto;
    text-align: right;
}

.message.other {
    background-color: #fff;
    border: 1px solid #dee2e6;
}

.message-timestamp {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 4px;
}

.chat-room-list {
    max-height: 400px;
    overflow-y: auto;
}

.member-list {
    max-height: 300px;
    overflow-y: auto;
}

.online-indicator {
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.typing-indicator {
    font-style: italic;
    color: #6c757d;
    padding: 5px 10px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .chat-container {
        height: calc(100vh - 150px);
    }
    
    .message {
        max-width: 95%;
        font-size: 0.9rem;
    }
    
    .chat-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        z-index: 1050;
        transition: left 0.3s ease;
        border-right: 1px solid #dee2e6;
    }
    
    .chat-sidebar.show {
        left: 0;
    }
    
    .chat-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
        display: none;
    }
    
    .chat-overlay.show {
        display: block;
    }
}

/* Prayer message styling */
.prayer-message {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #f39c12;
    font-style: italic;
}

/* Verse message styling */
.verse-message {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left: 4px solid #17a2b8;
    font-family: 'Georgia', serif;
}

/* Announcement styling */
.announcement-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 4px solid #28a745;
    font-weight: bold;
}