/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.section-heading {
    font-weight: 700;
    color: #212529;
}

/* Header Styles with Trading Background */
.py-5.bg-light {
    background-color: #f8f9fa;
}

header.py-5 {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('tradingview_chart_bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.subscription-header, .login-header, .members-header {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('tradingview_chart_bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 3rem 0;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

/* Button Styles */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Pricing Cards */
.pricing-card {
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid #0d6efd;
}

.price-container {
    padding: 1rem 0;
}

.price-currency {
    font-size: 1.5rem;
    vertical-align: top;
    position: relative;
    top: 0.5rem;
}

.price-value {
    font-size: 3rem;
    font-weight: 700;
}

.price-duration {
    font-size: 1rem;
    color: #6c757d;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Payment Icons */
.payment-icons {
    margin: 1rem 0;
}

.crypto-icon {
    height: 2rem;
    width: auto;
    vertical-align: middle;
}

.crypto-icon-small {
    height: 1rem;
    width: auto;
    vertical-align: middle;
}

/* Apple Pay Button */
.apple-pay-button {
    background-color: #000;
    color: #fff;
    border-radius: 5px;
    padding: 0.5rem 2rem;
}

/* PayPal Button */
.paypal-button {
    background-color: #0070ba;
    color: #fff;
}

/* Chat Styles */
.chat-container {
    height: calc(100vh - 56px);
    overflow: hidden;
}

.chat-sidebar {
    background-color: #2f3136;
    color: #dcddde;
    height: 100%;
    overflow-y: auto;
    padding: 1rem 0;
}

.sidebar-header {
    padding: 0 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.channel-list, .dm-list {
    margin-bottom: 1rem;
}

.channel, .dm {
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-radius: 4px;
    margin: 0 0.5rem;
}

.channel:hover, .dm:hover {
    background-color: #393c43;
}

.channel.active, .dm.active {
    background-color: #4f545c;
}

.user-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.user-status.online {
    background-color: #43b581;
}

.user-status.offline {
    background-color: #747f8d;
}

.user-status.away {
    background-color: #faa61a;
}

.online-members {
    padding: 0 1rem;
    font-size: 0.9rem;
}

.chat-main {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: #fff;
}

.message-day-divider {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}

.message-day-divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e9ecef;
    z-index: 1;
}

.message-day-divider span {
    background-color: #fff;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
    color: #6c757d;
    font-size: 0.9rem;
}

.chat-message {
    display: flex;
    margin-bottom: 1rem;
}

.message-avatar {
    margin-right: 1rem;
}

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

.message-content {
    flex: 1;
}

.message-header {
    margin-bottom: 0.25rem;
}

.message-author {
    font-weight: 600;
    margin-right: 0.5rem;
}

.message-author.admin {
    color: #0d6efd;
}

.message-time {
    font-size: 0.8rem;
    color: #6c757d;
}

.message-text {
    margin-bottom: 0.5rem;
}

.message-attachments {
    margin-top: 0.5rem;
}

.message-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
}

.message-file {
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.message-link {
    background-color: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.link-preview {
    display: flex;
    border-left: 4px solid #0d6efd;
}

.link-image {
    width: 80px;
    height: 80px;
    overflow: hidden;
}

.link-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-content {
    padding: 0.5rem;
    flex: 1;
}

.link-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.link-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.link-url {
    font-size: 0.8rem;
    color: #6c757d;
}

.typing-indicator {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.chat-input-container {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

.chat-input-actions {
    margin-right: 0.5rem;
}

.chat-input {
    flex: 1;
}

.chat-input textarea {
    resize: none;
    height: 40px;
    max-height: 120px;
}

.chat-input-send {
    margin-left: 0.5rem;
}

.emoji-picker-container {
    position: absolute;
    bottom: 100%;
    left: 0;
    z-index: 1000;
    display: none;
}

/* User List Styles */
.user-list {
    max-height: 300px;
    overflow-y: auto;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
}

.user-item:hover {
    background-color: #f8f9fa;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
}

.user-status {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Member Dashboard Styles */
.chat-preview {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
}

.upcoming-event {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.upcoming-event:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .chat-sidebar {
        position: fixed;
        width: 80%;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .chat-sidebar.show {
        transform: translateX(0);
    }
    
    .link-preview {
        flex-direction: column;
    }
    
    .link-image {
        width: 100%;
        height: 120px;
    }
}
