/* ============================================
   Properties Panel Styles
   ============================================ */

#properties-panel {
    height: 100%;
    overflow-y: auto;
    padding: 0;
}

/* Empty State */
.properties-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    min-height: 300px;
}

.properties-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.properties-empty-state h3 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.properties-empty-state p {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

/* Properties Content */
.properties-content {
    padding: 0;
}

/* Properties Header */
.properties-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.properties-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.properties-icon {
    font-size: 20px;
}

.properties-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.readonly-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}

/* Properties Section */
.properties-section {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.properties-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
}

/* Properties Fields */
.properties-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.property-field {
    display: flex;
    flex-direction: column;
}

.property-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.property-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #1f2937;
    transition: all 0.2s ease;
    background: #ffffff;
}

.property-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.property-input:read-only {
    background: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.property-select {
    cursor: pointer;
}

/* Color Input */
.property-field-color {
    /* Special styling for color inputs */
}

.color-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.property-color {
    width: 60px;
    height: 40px;
    padding: 4px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
}

.property-color::-webkit-color-swatch-wrapper {
    padding: 0;
}

.property-color::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.property-color-text {
    flex: 1;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
}

/* Properties Actions */
.properties-actions {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.properties-actions .btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #5568d3;
}

.btn-primary:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background: #d1d5db;
}

/* Readonly Warning */
.readonly-warning {
    padding: 12px 20px;
    background: #fffbeb;
    border-top: 1px solid #fef3c7;
    font-size: 12px;
    color: #92400e;
    text-align: center;
}

/* Property Row (for multiple fields in one row) */
.property-row {
    display: flex;
    gap: 10px;
}

.property-row .property-field {
    flex: 1;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background: #1f2937;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    z-index: 9999;
    animation: slideInUp 0.3s ease;
}

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

.toast-error {
    background: #ef4444;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Scrollbar */
#properties-panel::-webkit-scrollbar {
    width: 6px;
}

#properties-panel::-webkit-scrollbar-track {
    background: transparent;
}

#properties-panel::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

#properties-panel::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
