/* Downtown Irish Club Members Portal - CSS Styles */

/* Base Styles */
.dic-auth-container,
.dic-member-directory,
.dic-member-profile,
.dic-messages-container,
.dic-payment-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Private Messages Section on Profile */
.dic-private-messages-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #dee2e6;
}

.dic-private-messages-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.dic-private-messages-section .dic-messages-container {
    box-shadow: none;
    padding: 0;
}

/* New Conversation Button */
.dic-messages-header-actions {
    margin-bottom: 20px;
    text-align: right;
}

.dic-messages-header-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: white !important;
}

.dic-messages-header-actions .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* New Conversation Modal */
.dic-new-conversation-form .dic-member-select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.dic-new-conversation-form textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

/* Member Navigation */
.dic-member-navigation {
    background: #005E28;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dic-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dic-nav-brand {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dic-nav-welcome {
    font-size: 16px;
}

.dic-nav-brand strong {
    color: #fff;
}

/* Hamburger Menu Toggle */
.dic-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.dic-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.dic-nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px 0;
}

.dic-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.dic-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.dic-nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.dic-nav-link.dic-nav-logout {
    background: rgba(255, 255, 255, 0.15);
}

.dic-nav-link.dic-nav-logout:hover {
    background: rgba(255, 255, 255, 0.25);
}

.dic-nav-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .dic-nav-toggle {
        display: block;
    }
    
    .dic-nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .dic-nav-menu.active {
        display: flex;
    }
    
    .dic-nav-link {
        border-radius: 0;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dic-nav-brand {
        border-bottom: none;
    }
}

/* Auth Container & Tabs */
.dic-auth-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 30px;
}

.dic-tab-button {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    text-align: center;
}

.dic-tab-button:hover {
    color: #005E28;
    background: #f8f9fa;
}

.dic-tab-button.active {
    color: #005E28;
    border-bottom-color: #005E28;
}

.dic-tab-content {
    display: none;
}

.dic-tab-content.active {
    display: block;
}

/* Form Styles */
.dic-form-group {
    margin-bottom: 20px;
}

.dic-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.dic-form-group input,
.dic-form-group textarea,
.dic-form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.dic-form-group input:focus,
.dic-form-group textarea:focus,
.dic-form-group select:focus {
    outline: none;
    border-color: #005E28;
}

.dic-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 14px;
}

.dic-forgot-password {
    color: #005E28;
    text-decoration: none;
    font-size: 14px;
}

.dic-forgot-password:hover {
    text-decoration: underline;
}

/* Button Styles */
button,
.dic-form-group button,
.dic-view-profile-btn,
.dic-send-message-btn,
.dic-approve-member,
.dic-reject-member {
    background: #005E28;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover,
.dic-form-group button:hover,
.dic-view-profile-btn:hover,
.dic-send-message-btn:hover {
    background: #005a87;
}

.dic-approve-member {
    background: #28a745;
    margin-right: 10px;
}

.dic-approve-member:hover {
    background: #1e7e34;
}

.dic-reject-member {
    background: #dc3545;
}

.dic-reject-member:hover {
    background: #c82333;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Message Styles */
.dic-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-weight: 500;
}

.dic-message.dic-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.dic-message.dic-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.dic-message.dic-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.dic-message.dic-logged-in-notice {
    background: #009640;
    color: white;
    border: 1px solid #007a33;
}

.dic-message.dic-logged-in-notice p {
    color: white;
}

.dic-message.dic-logged-in-notice strong {
    color: white;
}

.dic-message.dic-logged-in-notice .button {
    background: white;
    color: #009640;
    border: 2px solid white;
}

.dic-message.dic-logged-in-notice .button:hover {
    background: #f0f0f0;
}

.dic-message.dic-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Member Directory Grid */
.dic-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dic-member-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dic-member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 94, 40, 0.15);
    border-color: #005E28;
    background: white;
}

.dic-member-avatar {
    margin-bottom: 15px;
}

.dic-member-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
}

.dic-default-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #005E28;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    margin: 0 auto;
}

.dic-default-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #005E28;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.dic-member-info h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.dic-club-role-badge {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #005E28;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dic-member-info .dic-view-profile-btn {
    margin-top: 10px;
    background: #005E28;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.dic-member-info .dic-view-profile-btn:hover {
    background: #004520;
}

/* Profile View Styles - Clean Display */
.dic-member-profile-view {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.dic-profile-header {
    text-align: center;
    padding: 40px 20px;
    background: #009640;
    color: white;
}

.dic-profile-image-large {
    margin: 0 auto 20px;
}

.dic-profile-image-large img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dic-profile-header h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
    color: white;
}

.dic-member-role {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.dic-member-number-display {
    font-size: 13px;
    opacity: 0.8;
    margin: 0;
    font-weight: 400;
}

.dic-profile-body {
    padding: 40px;
}

.dic-profile-info-list {
    margin-bottom: 30px;
}

.dic-info-item {
    margin: 12px 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.dic-info-item strong {
    color: #333;
    font-weight: 600;
}

.dic-info-item a {
    color: #005E28;
    text-decoration: none;
}

.dic-info-item a:hover {
    text-decoration: underline;
}

.dic-profile-bio {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.dic-profile-bio h3 {
    margin-top: 0;
    color: #333;
}

.dic-bio-text {
    color: #555;
    line-height: 1.6;
}

.dic-profile-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #dee2e6;
}

.dic-profile-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
}

.dic-profile-actions .button-primary {
    background: #005E28;
    color: white;
    border-color: #005E28;
}

.dic-profile-actions .button-primary:hover {
    background: #004520;
    border-color: #004520;
}

.dic-profile-actions .button-primary .dashicons {
    color: white;
}

/* Profile Edit Styles */
.dic-member-profile-edit {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Profile Styles */
.dic-readonly-field {
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #666;
    margin: 0;
}

.dic-profile-image-upload {
    margin-top: 10px;
}

.dic-current-image {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.dic-status-paid {
    color: #28a745;
    font-weight: bold;
}

.dic-status-unpaid {
    color: #dc3545;
    font-weight: bold;
}

.dic-status-pending {
    color: #ffc107;
    font-weight: bold;
}

.dic-status-active {
    color: #005E28;
    font-weight: bold;
}

/* Modal Styles */
.dic-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dic-modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.dic-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.dic-modal-close:hover {
    color: #000;
}

/* Quick Message Modal */
#dic-quick-message-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

/* Password Reset Instructions */
.dic-reset-instructions {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    color: #856404;
    line-height: 1.5;
}

.dic-forgot-password {
    color: #005E28;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.dic-forgot-password:hover {
    color: #009640;
    text-decoration: underline;
}

#dic-quick-msg-recipient-name {
    color: #009640;
}

#dic-quick-message-form .dic-form-group {
    margin-bottom: 20px;
}

#dic-quick-message-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

#dic-quick-message-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

#dic-quick-message-form button {
    margin-right: 10px;
}

#dic-quick-msg-status {
    margin-top: 15px;
}

/* Messenger Container - Modern Single Column */
.dic-messenger-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    height: 700px;
    display: flex;
    flex-direction: column;
}

/* Messenger Header */
.dic-messenger-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.dic-messenger-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.dic-new-msg-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #005E28 !important;
    border: none !important;
}

.dic-new-msg-btn .dashicons {
    color: white;
    font-size: 20px;
}

/* List View */
.dic-messenger-list-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* Conversations List */
.dic-conversations-list {
    flex: 1;
    overflow-y: auto;
    background: white;
}

.dic-messenger-conversation-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

.dic-messenger-conversation-item:hover {
    background: #f8f9fa;
}

.dic-messenger-avatar {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    margin-right: 12px;
}

.dic-messenger-avatar img,
.dic-messenger-avatar .dic-default-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.dic-messenger-conv-info {
    flex: 1;
    min-width: 0;
    margin-right: 40px;
}

.dic-messenger-conv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.dic-messenger-conv-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #050505;
}

.dic-messenger-time {
    font-size: 13px;
    color: #8a8a8a;
}

.dic-messenger-conv-preview {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dic-messenger-last-msg {
    margin: 0;
    font-size: 14px;
    color: #65676b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dic-messenger-unread-badge {
    background: #005E28;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.dic-delete-conversation-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #8a8a8a;
    cursor: pointer;
    padding: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dic-messenger-conversation-item:hover .dic-delete-conversation-btn {
    opacity: 1;
}

.dic-delete-conversation-btn:hover {
    color: #dc3545;
}

/* Chat View */
.dic-messenger-chat-view {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dic-messenger-chat-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    gap: 12px;
    flex-shrink: 0;
}

.dic-back-to-list-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    color: #005E28;
}

.dic-back-to-list-btn:hover {
    background: #f0f0f0;
    border-radius: 50%;
}

.dic-back-to-list-btn .dashicons {
    font-size: 24px;
}

.dic-messenger-chat-avatar {
    width: 40px;
    height: 40px;
}

.dic-messenger-chat-avatar img,
.dic-messenger-chat-avatar .dic-default-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.dic-messenger-chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #050505;
}

/* Messages Area */
.dic-messenger-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: white;
}

.dic-no-messages-state {
    text-align: center;
    padding: 60px 20px;
    color: #8a8a8a;
}

/* Message Bubbles */
.dic-messenger-bubble-wrapper {
    display: flex;
    margin-bottom: 8px;
    align-items: flex-end;
    gap: 8px;
}

.dic-bubble-sent {
    justify-content: flex-end;
}

.dic-bubble-received {
    justify-content: flex-start;
}

.dic-messenger-msg-avatar {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.dic-messenger-msg-avatar img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.dic-messenger-bubble {
    max-width: 65%;
    padding: 8px 12px;
    border-radius: 18px;
    position: relative;
}

.dic-bubble-sent .dic-messenger-bubble {
    background: #005E28;
    color: white;
    border-bottom-right-radius: 4px;
}

.dic-bubble-received .dic-messenger-bubble {
    background: #e4e6eb;
    color: #050505;
    border-bottom-left-radius: 4px;
}

.dic-bubble-text {
    font-size: 15px;
    line-height: 1.4;
    word-wrap: break-word;
}

.dic-bubble-image {
    margin-top: 4px;
}

.dic-bubble-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.dic-bubble-time {
    font-size: 11px;
    margin-top: 4px;
    opacity: 0.7;
}

.dic-bubble-sent .dic-bubble-time {
    color: rgba(255, 255, 255, 0.8);
    text-align: right;
}

.dic-bubble-received .dic-bubble-time {
    color: #65676b;
}

/* Messenger Compose */
.dic-messenger-compose {
    padding: 12px 16px;
    background: white;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.dic-messenger-image-preview {
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.dic-messenger-image-preview img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.dic-remove-preview-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.dic-messenger-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f2f5;
    border-radius: 20px;
    padding: 6px 8px 6px 12px;
}

.dic-messenger-attach-btn {
    background: transparent;
    border: none;
    color: #005E28;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.dic-messenger-attach-btn:hover {
    opacity: 0.7;
}

.dic-messenger-attach-btn .dashicons {
    font-size: 24px;
}

.dic-messenger-input-wrapper textarea {
    flex: 1;
    border: none;
    background: transparent;
    resize: none;
    font-size: 15px;
    line-height: 20px;
    max-height: 100px;
    font-family: inherit;
    padding: 6px 0;
}

.dic-messenger-input-wrapper textarea:focus {
    outline: none;
}

.dic-messenger-send-btn {
    background: #005E28;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.dic-messenger-send-btn:hover {
    background: #004520;
}

.dic-messenger-send-btn .dashicons {
    color: white;
    font-size: 20px;
}

/* Old Messages Styles (keep for backwards compatibility) */
.dic-messages-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    height: 600px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.dic-conversations-panel {
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    padding: 20px;
    overflow-y: auto;
    max-height: 600px;
}

.dic-conversations-list {
    overflow-y: auto;
    max-height: 500px;
}

.dic-conversations-panel h3 {
    margin-top: 0;
    color: #333;
}

.dic-conversation-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

.dic-conversation-item:hover,
.dic-conversation-item.active {
    background: #e9ecef;
}

.dic-delete-conversation-btn {
    background: transparent;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.dic-delete-conversation-btn:hover {
    color: #c82333;
}

.dic-delete-conversation-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.dic-conversation-avatar {
    margin-right: 15px;
}

.dic-conversation-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.dic-conversation-info {
    flex: 1;
    min-width: 0;
}

.dic-conversation-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.dic-last-message {
    color: #666;
    font-size: 14px;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dic-message-time {
    color: #999;
    font-size: 12px;
}

.dic-unread-count {
    background: #005E28;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

.dic-messages-panel {
    display: flex;
    flex-direction: column;
    background: white;
    height: 600px;
    overflow: hidden;
}

.dic-messages-header {
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
    flex-shrink: 0;
}

.dic-messages-header h3 {
    margin: 0;
    color: #333;
}

.dic-messages-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.dic-message-item {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.dic-message-item.dic-sent {
    flex-direction: row-reverse;
}

.dic-message-item.dic-sent .dic-message-content {
    background: #005E28;
    color: white;
    margin-right: 10px;
    margin-left: 0;
}

.dic-message-item.dic-received .dic-message-content {
    background: #f8f9fa;
    color: #333;
    margin-left: 10px;
}

.dic-message-avatar {
    flex-shrink: 0;
}

.dic-message-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.dic-message-content {
    max-width: 70%;
    padding: 15px;
    border-radius: 18px;
    position: relative;
}

.dic-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    gap: 10px;
}

.dic-sender-name {
    font-weight: bold;
    font-size: 14px;
}

.dic-message-time {
    font-size: 12px;
    opacity: 0.7;
}

.dic-message-item.dic-sent .dic-message-time {
    color: rgba(255, 255, 255, 0.85);
}

.dic-message-text {
    line-height: 1.4;
}

.dic-message-compose {
    padding: 20px;
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
    flex-shrink: 0;
    min-height: 120px;
}

.dic-message-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dic-message-input-group textarea {
    width: 100%;
    resize: vertical;
    min-height: 60px;
}

.dic-message-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.dic-message-actions .button-primary,
#dic-send-message-btn,
#dic-attach-image-btn {
    color: white !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
}

.dic-no-conversations,
.dic-no-conversation-selected,
.dic-no-messages {
    text-align: center;
    color: #666;
    padding: 40px 20px;
}

/* Payment Styles */
.dic-payment-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.dic-payment-info p {
    margin: 5px 0;
    font-size: 16px;
}

.dic-payment-methods {
    margin-bottom: 40px;
}

.dic-payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dic-payment-option {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.dic-payment-option:hover {
    border-color: #005E28;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.1);
}

.dic-payment-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.dic-payment-option h4 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 20px;
}

.dic-payment-option p {
    color: #666;
    margin: 8px 0;
}

.dic-payment-details {
    font-size: 18px;
    color: #005E28;
    font-weight: bold;
    margin: 15px 0 !important;
    word-break: break-all;
}

.dic-payment-option .button {
    margin-top: 15px;
}

.dic-payment-btn {
    background: #005E28 !important;
    color: white !important;
    border: 2px solid #005E28 !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
}

.dic-payment-btn:hover {
    background: #004520 !important;
    border-color: #004520 !important;
    color: white !important;
}

.dic-payment-confirmation {
    background: #fff;
    border: 2px solid #005E28;
    border-radius: 8px;
    padding: 25px;
}

.dic-payment-confirmation h3 {
    margin-top: 0;
    color: #005E28;
}

.dic-card-element {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: white;
}

.dic-card-errors {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
}

/* Loading Styles */
.dic-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.dic-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #005E28;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Admin Styles */
.dic-pending-members,
.dic-all-members {
    margin-top: 20px;
}

.wp-list-table th {
    background: #f1f1f1;
    font-weight: 600;
}

.dic-conversation-item.active {
    background: #005E28;
    color: white;
}

.dic-conversation-item.active h4,
.dic-conversation-item.active .dic-last-message,
.dic-conversation-item.active .dic-message-time {
    color: white;
}

/* Responsive Design */
/* Group Chat Styles */
.dic-group-chat {
    max-width: 900px;
    margin: 0 auto;
}

.dic-group-chat h2 {
    color: white;
}

.dic-chat-description {
    color: white;
    margin-bottom: 20px;
}

.dic-group-chat-messages {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    height: 500px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.dic-group-messages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dic-group-message-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dic-group-message-item.dic-own-message {
    background: #e7f3ff;
    border-left: 3px solid #005E28;
}

.dic-group-message-avatar img,
.dic-default-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.dic-default-avatar-small {
    background: #005E28;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.dic-group-message-content {
    flex: 1;
    min-width: 0;
}

.dic-group-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    gap: 10px;
}

.dic-group-sender-name {
    font-weight: bold;
    color: #005E28;
}

.dic-group-message-time {
    font-size: 12px;
    color: #999;
}

.dic-delete-message-btn {
    background: transparent;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.dic-delete-message-btn:hover {
    color: #c82333;
}

.dic-delete-message-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.dic-group-message-text {
    color: #333;
    line-height: 1.5;
    word-wrap: break-word;
}

.dic-chat-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dic-chat-input-wrapper textarea {
    width: 100%;
    resize: none;
    min-height: 60px;
}

.dic-chat-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.dic-attach-group-btn {
    color: white !important;
    background: transparent !important;
    border: 2px solid white !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
}

.dic-attach-group-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.dic-group-chat-input button,
.dic-group-send-btn {
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent !important;
    border: 2px solid white !important;
    color: white !important;
    font-weight: 500;
}

.dic-group-chat-input button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

@media (max-width: 768px) {
    .dic-messages-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .dic-group-chat-messages {
        height: 300px;
    }
    
    .dic-chat-input-wrapper {
        flex-direction: column;
    }
    
    .dic-chat-input-wrapper button {
        width: 100%;
        justify-content: center;
    }
    
    .dic-conversations-panel {
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        max-height: 200px;
    }
    
    .dic-members-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Navigation */
    .dic-nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .dic-nav-link {
        width: 100%;
        justify-content: flex-start;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
    }
    
    .dic-nav-link:last-child {
        border-bottom: none;
    }
    
    /* Mobile Chat */
    .dic-chat-input-wrapper {
        flex-direction: column;
    }
    
    .dic-chat-input-wrapper textarea {
        margin-bottom: 10px;
    }
    
    .dic-group-chat-messages {
        height: 250px !important;
    }
    
    .dic-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .dic-message-content {
        max-width: 85%;
    }
    
    .dic-message-input-group {
        flex-direction: column;
    }
    
    .dic-message-input-group button {
        align-self: flex-end;
    }
}

/* Utility Classes */
.dic-text-center {
    text-align: center;
}

.dic-text-left {
    text-align: left;
}

.dic-text-right {
    text-align: right;
}

.dic-mb-0 { margin-bottom: 0; }
.dic-mb-1 { margin-bottom: 10px; }
.dic-mb-2 { margin-bottom: 20px; }
.dic-mb-3 { margin-bottom: 30px; }

.dic-mt-0 { margin-top: 0; }
.dic-mt-1 { margin-top: 10px; }
.dic-mt-2 { margin-top: 20px; }
.dic-mt-3 { margin-top: 30px; }

.dic-p-0 { padding: 0; }
.dic-p-1 { padding: 10px; }
.dic-p-2 { padding: 20px; }
.dic-p-3 { padding: 30px; }

/* Print Styles */
@media print {
    .dic-modal,
    .dic-message-compose,
    .dic-view-profile-btn,
    .dic-send-message-btn,
    button {
        display: none !important;
    }
    
    .dic-member-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
