/* Profile Panels Grid */
.profile-panels-container {
    width: 100%;
}

.panels-edit-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    /* padding: 0.5rem 0; */
    border-bottom: 1px solid #dee2e6;
}

.panels-grid {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.panels-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panels-col-left {
    flex: 1.5;
}

.panels-col-right {
    flex: 1;
}


/* Drag Handle (Edit Mode) */
.drag-handle {
    cursor: grab;
    color: #6c757d;
    font-size: 1.25rem;
    padding: 0.25rem 0.5rem;
}

.drag-handle:active {
    cursor: grabbing;
}

/* Panel Wrapper */
.panel-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.panel-wrapper.edit-mode {

    padding: 0.5rem;
    border-radius: 0.25rem;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 1.5rem;
}

.visibility-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 0;
}

.visibility-toggle:hover {
    opacity: 0.8;
}

.panel-content {
    min-height: 2rem;
    color: black !important
}

.panel-content.hidden {
    display: none;
}

/* Text Content Panel */
.text-content-panel {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.25rem;
    line-height: 1.6;
}

.text-panel-empty {
    color: #6c757d;
    font-style: italic;
}

.text-panel-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.text-panel-content h1,
.text-panel-content h2,
.text-panel-content h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.text-panel-content p {
    margin-bottom: 0.5rem;
}

.text-panel-content a {
    color: #0d6efd;
    text-decoration: none;
}

.text-panel-content a:hover {
    text-decoration: underline;
}

.text-panel-content strong {
    font-weight: 600;
}

.text-panel-content em {
    font-style: italic;
}

.text-panel-content ul,
.text-panel-content ol {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.text-panel-content li {
    margin-bottom: 0.25rem;
}

.text-panel-content code {
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.875em;
}

.text-panel-content pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.25rem;
    overflow-x: auto;
    margin-bottom: 0.5rem;
}

.text-panel-content pre code {
    background: none;
    padding: 0;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

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

.modal-dialog {
    width: 100%;
    max-width: 600px;
    margin: 1rem;
}

.modal-content {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

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

.modal-body {
    padding: 1rem;
}

.modal-footer {
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Saving Indicator */
.saving-indicator {
    color: #6c757d;
    font-size: 0.875rem;
    font-style: italic;
}

/* Add Panel Bar */
.panels-add-bar {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 0;
    border-top: 1px solid #dee2e6;
}

/* Responsive */
@media (max-width: 992px) {
    .panels-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .left-column,
    .right-column {
        flex: 1;
    }
}
