/**
 * Sketch UI Element Details Styles
 * 
 * This file contains styles for the element details icon feature.
 */

/* Sketch Details Icon */
.sketch-details-icon {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 36px;
    height: 36px;
    /* background: rgba(0, 0, 0, 0.7); */
    color: white;
    /* border-radius: 50%; */
    border-radius: 0 var(--radius) var(--radius) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    /* opacity: 0.6; */
    transition: opacity 0.2s ease;
    border-left: 1px solid var(--neutral-semi-light);
}

.sketch-details-icon:hover {
    /* opacity: 1; */
    background-color: var(--neutral-ultra-light);
}

.sketch-details-icon svg {
    width: 24px;
    height: 24px;
}

/* Modal Styles */
.sketch-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

.sketch-modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.sketch-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.sketch-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.sketch-modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.sketch-modal-tabs {
    display: flex;
    border-bottom: 1px solid #e2e3e4;
    background: #f2f3f4;
    overflow-x: auto;
}

.sketch-modal-tab {
    background: none;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.sketch-modal-tab:hover {
    background-color: #e9ecef;
    color: #333;
}

.sketch-modal-tab.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background-color: white;
}

.sketch-modal-tab-content {
    flex: 1;
    overflow: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.sketch-modal-tab-panel {
    display: none;
    height: 100%;
    overflow: hidden;
    min-height: 0;
    flex: 1;
}

.sketch-modal-tab-panel.active {
    display: flex;
    flex-direction: column;
}

.sketch-modal-css {
    margin: 0;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    resize: none;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-radius: 0;
    height: 100%;
}

.sketch-textarea-container {
    position: relative;
    flex: 1;
}

.sketch-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.5);
    /* border: 1px solid #dee2e6; */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    color: #666;
}

.sketch-copy-btn:hover {
    background-color: #f0f0f0;

    /* border-color: #007bff;
    color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

.sketch-copy-btn.copied {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.sketch-copy-btn svg {
    width: 16px;
    height: 16px;
} 