/* MyRecordsCard Styles */

.my-records-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* Header */
.my-records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.my-records-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.my-records-back-btn {
    background: #F0F7F5;
    color: #372562;
    border: 1px solid #97c1bc;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.my-records-back-btn:hover {
    background: #97c1bc;
    color: white;
}

.my-records-title {
    color: #372562;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

/* Admin User Selector */
.my-records-user-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.user-selector-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #372562;
    white-space: nowrap;
}

.user-selector-dropdown {
    padding: 0.5rem 0.75rem;
    border: 2px solid #97c1bc;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #372562;
    background: white;
    min-width: 220px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.user-selector-dropdown:focus {
    outline: none;
    border-color: #ec5f59;
}

.viewing-indicator {
    font-size: 0.85rem;
    color: #7c3aed;
    padding: 0.35rem 0.75rem;
    background: #f3f0ff;
    border-radius: 6px;
    border: 1px solid #ddd6fe;
}

.viewing-indicator strong {
    color: #7c3aed;
}

/* Tab Navigation */
.my-records-tabs {
    display: flex;
    gap: 4px;
    padding: 0;
    margin-bottom: 0;
    background: #F0F7F5;
    border-radius: 10px 10px 0 0;
    padding: 0.5rem 0.5rem 0;
}

.my-records-tab {
    flex: 1;
    padding: 0.85rem 1rem;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #372562;
    background: #C8DDD8;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s;
}

.my-records-tab:hover {
    background: #b0cfc8;
}

.my-records-tab.active {
    background: linear-gradient(135deg, #ec5f59 0%, #D4605A 100%);
    color: white;
    font-weight: 600;
}

/* Error State */
.my-records-error {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.my-records-retry-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
}

.my-records-retry-btn:hover {
    background: #b91c1c;
}

/* Content Area */
.my-records-content {
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-height: 400px;
}

/* Placeholder for unimplemented tabs */
.my-records-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    color: #372562;
}

.my-records-placeholder .placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.my-records-placeholder h3 {
    color: #372562;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
}

.my-records-placeholder p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .my-records-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .my-records-tabs {
        flex-direction: column;
        gap: 2px;
    }

    .my-records-tab {
        border-radius: 6px;
    }

    .my-records-user-selector {
        width: 100%;
    }

    .user-selector-dropdown {
        flex: 1;
        min-width: 0;
    }
}

/* ============================================================
   PEER SUPERVISION TAB STYLES
   ============================================================ */

.peer-supervision-tab {
    padding: 1.5rem;
}

.peer-supervision-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.peer-supervision-title {
    color: #372562;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.peer-suggest-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.peer-suggest-btn:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

/* Section headings */
.peer-section-heading {
    color: #372562;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #97c1bc;
}

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

.peer-modal {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.peer-modal-header {
    background: linear-gradient(135deg, #ec5f59 0%, #D4605A 100%);
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.peer-modal-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.peer-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.peer-modal-close:hover {
    opacity: 1;
}

.peer-modal-body {
    padding: 1.25rem;
}

.peer-modal-footer {
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.peer-form-group {
    margin-bottom: 1rem;
}

.peer-form-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #372562;
    margin-bottom: 0.4rem;
}

.peer-form-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 2px solid #97c1bc;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #372562;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.peer-form-input:focus {
    outline: none;
    border-color: #ec5f59;
}

.peer-form-textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 2px solid #97c1bc;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #372562;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.peer-form-textarea:focus {
    outline: none;
    border-color: #ec5f59;
}

.peer-btn-primary {
    background: linear-gradient(135deg, #ec5f59 0%, #D4605A 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.peer-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #D4605A 0%, #c0504a 100%);
}

.peer-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.peer-btn-secondary {
    background: #F0F7F5;
    color: #372562;
    border: 1px solid #97c1bc;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.peer-btn-secondary:hover {
    background: #97c1bc;
    color: white;
}

.peer-error-msg {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

.peer-success-msg {
    background: #dcfce7;
    color: #16a34a;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

/* My Suggestions Section */
.peer-suggestions-section {
    margin-bottom: 2rem;
}

.peer-suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.peer-suggestion-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    gap: 1rem;
}

.peer-suggestion-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.peer-suggestion-topic {
    font-weight: 600;
    color: #372562;
    font-size: 0.9rem;
}

.peer-suggestion-desc {
    color: #666;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.peer-suggestion-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.peer-suggestion-status.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.peer-suggestion-status.status-included {
    background: #dcfce7;
    color: #16a34a;
}

/* Shared Peer Minutes Section */
.peer-minutes-section {
    margin-top: 1rem;
}

.peer-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 0.95rem;
}

.peer-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #372562;
}

.peer-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.peer-empty-state p {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: #372562;
}

.peer-empty-hint {
    color: #666 !important;
    font-size: 0.85rem !important;
}

.peer-back-btn {
    background: #F0F7F5;
    color: #372562;
    border: 1px solid #97c1bc;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.peer-back-btn:hover {
    background: #97c1bc;
    color: white;
}

/* Minutes List */
.peer-minutes-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.peer-minutes-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.peer-minutes-card:hover {
    background: #F0F7F5;
    border-color: #97c1bc;
    transform: translateX(2px);
}

.peer-minutes-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.peer-minutes-date {
    font-weight: 600;
    color: #372562;
    font-size: 0.95rem;
}

.peer-minutes-shared {
    color: #666;
    font-size: 0.8rem;
}

.peer-minutes-arrow {
    color: #97c1bc;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Minutes Detail View */
.peer-minutes-detail {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.peer-minutes-detail-header {
    background: linear-gradient(135deg, #97c1bc 0%, #7aada0 100%);
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.peer-minutes-detail-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.peer-shared-date {
    font-size: 0.8rem;
    opacity: 0.9;
}

.peer-minutes-content {
    padding: 1.25rem;
    color: #372562;
    font-size: 0.95rem;
    line-height: 1.6;
}

.peer-minutes-content h2,
.peer-minutes-content h3,
.peer-minutes-content h4 {
    color: #372562;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.peer-minutes-content h2 { font-size: 1.15rem; }
.peer-minutes-content h3 { font-size: 1.05rem; }
.peer-minutes-content h4 { font-size: 0.95rem; }

.peer-minutes-content ul,
.peer-minutes-content ol {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.peer-minutes-content li {
    margin-bottom: 0.3rem;
}

.peer-minutes-content p {
    margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .peer-supervision-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .peer-suggest-btn {
        width: 100%;
        text-align: center;
    }

    .peer-suggestion-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .peer-modal {
        width: 95%;
        margin: 1rem;
    }

    .peer-minutes-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
