/* Base styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background: #2c3e50;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
}

/* Dashboard styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

.dashboard-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
}

/* Editor styles */
.editor-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

#editor {
    border: 1px solid #ddd;
    min-height: 500px;
    padding: 20px;
    margin: 20px 0;
}

#jsonOutput {
    width: 100%;
    height: 200px;
}

/* Device Page Styles */
.device-content, .assign-content, .device-actions {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.content-preview {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Editor Item Styles */
.editor-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #dee2e6;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.item-type {
    font-weight: bold;
    color: #495057;
}

.remove-item {
    background: #dc3545;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-text {
    width: 50%;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.item-size {
    width: 10%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
}

/* Character counter */
.char-counter {
    font-size: 12px;
    color: #6c757d;
    text-align: right;
    margin-top: -8px;
    margin-bottom: 8px;
}

.button.danger {
    background: #dc3545;
}