/* PlusNet Data - Modal Styles */

/* Feedback Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Large modal for member details */
.member-detail-modal-large {
    max-width: 95%;
    width: 1400px;
    max-height: 95vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Desktop: shift modal for sidebar */
@media (min-width: 769px) {
    .member-detail-modal-large {
        max-width: calc(100% - 280px);
        margin-left: 140px;
    }
}

.modal h2 {
    color: #2d5a3d;
    margin-bottom: 10px;
    font-size: 24px;
}

.modal p {
    color: #333;
    margin-bottom: 20px;
    font-size: 14px;
}

.modal label {
    color: #2d5a3d;
    font-weight: 600;
}

.modal input,
.modal select {
    color: #000;
}

.modal textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.modal textarea:focus {
    outline: none;
    border-color: #4a8f5e;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-shrink: 0;
}

.modal-buttons button {
    flex: 1;
    padding: 12px;
    font-size: 14px;
}

.btn-cancel {
    background: #95a5a6 !important;
}

.btn-cancel:hover {
    background: #7f8c8d !important;
}

/* Member Detail Modal - Tabs */
.member-detail-tabs {
    display: flex;
    gap: 3px;
    border-bottom: none;
    margin-bottom: 0;
    background: #f0f0f0;
    flex-shrink: 0;
    padding: 5px 5px 0 5px;
}

.member-detail-tab {
    padding: 10px 16px;
    background: #d5d5d5;
    border: 1px solid #bbb;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    transition: all 0.2s;
}

.member-detail-tab:hover {
    background: #c5c5c5;
    color: #222;
}

.member-detail-tab.active {
    background: white;
    color: #2d5a3d;
    font-weight: 700;
    border-top: 4px solid #2d5a3d;
    border-left: 1px solid #2d5a3d;
    border-right: 1px solid #2d5a3d;
    padding-top: 8px;
    box-shadow: 0 -3px 8px rgba(45, 90, 61, 0.25);
}

.member-detail-tabs-container {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    margin: 0 -20px 0 -20px;
    flex: 1 1 auto;
    min-height: 0;
}

.member-detail-tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.member-detail-tab-content.active {
    display: block;
}

.member-detail-field {
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 10px;
    align-items: start;
}

.member-detail-label {
    font-weight: 600;
    color: #555;
    padding-top: 8px;
}

.member-detail-value {
    padding: 8px 12px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    min-height: 38px;
    color: #333;
}

.member-detail-value.empty {
    color: #999;
    font-style: italic;
}

.member-detail-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d5a3d;
    margin-top: 20px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.member-detail-section-title:first-child {
    margin-top: 0;
}

/* Member Profile Tab Styles */
.member-tab {
    transition: all 0.3s ease;
}

.member-tab:hover {
    background: #e9ecef !important;
}

.member-tab.active {
    background: white !important;
    color: #2d5a3d !important;
    border-bottom-color: #2d5a3d !important;
}

.member-tab-content {
    display: none;
}

.member-tab-content.active {
    display: block !important;
}

.value.empty {
    color: #999;
    font-style: italic;
}
