/* ==========================================================================
   Meeting Single Page Template Styles
   ========================================================================== */

.cxd-meeting-single {
    /* No width constraints - let Breakdance control layout */
}

/* Header */
.cxd-meeting-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.cxd-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.cxd-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cxd-header-right {
    display: flex;
    gap: 0.5rem;
}

.cxd-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
}

.cxd-header-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.cxd-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.cxd-meta-item .dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
}

/* Sections */
.cxd-section {
    margin-bottom: 2rem;
}

.cxd-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.cxd-section-header .cxd-section-title {
    margin: 0;
    padding: 0;
    border: none;
}

.cxd-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.cxd-empty-state {
    color: #9ca3af;
    font-style: italic;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    text-align: center;
}

/* Attendees */
.cxd-attendees-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cxd-attendee-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: #f3f4f6;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #374151;
}

.cxd-attendee-badge .dashicons {
    font-size: 0.875rem;
    width: 0.875rem;
    height: 0.875rem;
    color: #6b7280;
}

/* Links Grid */
.cxd-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.cxd-links-column h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem 0;
}

.cxd-link-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #374151;
    margin-bottom: 0.5rem;
    transition: all 0.15s ease;
}

.cxd-link-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.cxd-link-serial {
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
    color: #6b7280;
}

.cxd-link-title {
    font-size: 0.875rem;
}

/* Pulled Milestones */
.cxd-pulled-milestone-row {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.cxd-pulled-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.cxd-badge-source[data-source="goal"] {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.cxd-badge-source[data-source="project"] {
    background: #f3e8ff;
    color: #7c3aed;
    border: 1px solid #e9d5ff;
}

.cxd-pulled-title {
    font-weight: 500;
    color: #1f2937;
}

.cxd-pulled-notes {
    margin-bottom: 0.75rem;
}

.cxd-pulled-push {
    display: flex;
    justify-content: flex-end;
}

/* Checkbox Label */
.cxd-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
}

/* Agenda */
.cxd-agenda-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.cxd-agenda-row.cxd-agenda-pushed {
    border-left: 3px solid #3b82f6;
}

.cxd-agenda-checkbox {
    padding-top: 0.125rem;
}

.cxd-agenda-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cxd-agenda-text {
    color: #1f2937;
    line-height: 1.5;
}

.cxd-pushed-indicator {
    color: #3b82f6;
    margin-right: 0.25rem;
}

.cxd-agenda-owner {
    font-size: 0.75rem;
    color: #6b7280;
}

.cxd-agenda-notes {
    grid-column: 2 / -1;
}

.cxd-agenda-push {
    grid-column: 2 / -1;
    display: flex;
    justify-content: flex-end;
    padding-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
    margin-top: 0.5rem;
}

/* Action Items */
.cxd-action-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.cxd-action-content {
    grid-column: 1 / -1;
}

.cxd-action-text {
    color: #1f2937;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.cxd-action-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cxd-action-owner,
.cxd-action-due {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.cxd-action-owner .dashicons,
.cxd-action-due .dashicons {
    font-size: 0.875rem;
    width: 0.875rem;
    height: 0.875rem;
}

.cxd-action-status {
    display: flex;
    align-items: center;
}

.cxd-action-notes {
    grid-column: 1 / -1;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
    margin-top: 0.5rem;
}

/* Meeting Notes */
.cxd-meeting-notes-content {
    /* Let the editable textarea handle the styling */
}

.cxd-meeting-notes-content .cxd-display-text {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    line-height: 1.7;
    min-height: 6rem;
}

.cxd-meeting-notes-content .cxd-display-text p {
    margin: 0 0 1rem 0;
}

.cxd-meeting-notes-content .cxd-display-text p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .cxd-header-top {
        flex-direction: column;
    }
    
    .cxd-agenda-row,
    .cxd-action-row {
        grid-template-columns: 1fr;
    }
    
    .cxd-agenda-checkbox {
        grid-row: 1;
    }
    
    .cxd-agenda-notes,
    .cxd-agenda-push,
    .cxd-action-notes {
        grid-column: 1;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.cxd-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.cxd-btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.cxd-btn-primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.cxd-btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.cxd-btn-secondary {
    background: white;
    color: #374151;
    border-color: #d1d5db;
}

.cxd-btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.cxd-btn .dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
}

/* ==========================================================================
   Modals
   ========================================================================== */

.cxd-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.cxd-modal.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cxd-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.cxd-modal-content {
    position: relative;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 500px;
    margin: 1rem;
}

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

.cxd-modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.cxd-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.cxd-modal-close:hover {
    color: #1f2937;
}

.cxd-modal-body {
    padding: 1.5rem;
}

.cxd-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 0.5rem 0.5rem;
}

/* ==========================================================================
   Forms
   ========================================================================== */

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

.cxd-form-group:last-child {
    margin-bottom: 0;
}

.cxd-form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.cxd-form-row {
    display: flex;
    gap: 1rem;
}

.cxd-form-half {
    flex: 1;
}

.cxd-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: white;
    box-sizing: border-box;
}

.cxd-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea.cxd-input {
    resize: vertical;
    min-height: 80px;
}

select.cxd-input {
    cursor: pointer;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.cxd-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cxd-toast-success {
    background: #10b981;
    color: white;
}

.cxd-toast-error {
    background: #ef4444;
    color: white;
}
