/* css/devices.css */

.devices-list {
    margin: 20px 0;
}

.device-item {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.device-item.current-device {
    border-color: var(--primary-color);
    background: #e8f5e9;
}

.device-item::before {
    content: '💻';
    font-size: 24px;
    float: left;
    margin-right: 15px;
}

.device-item[data-platform="mobile"]::before,
.device-item[data-platform="Android"]::before,
.device-item[data-platform="iOS"]::before {
    content: '📱';
}

.device-item[data-platform="tablet"]::before {
    content: '📱';
    font-size: 28px;
}

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

.device-name h4 {
    margin: 0;
}

.device-details {
    margin-bottom: 15px;
}

.device-platform {
    color: #666;
    font-weight: 500;
}

.device-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.edit-device-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.edit-device-btn:hover {
    opacity: 1;
}

.device-name-input {
    padding: 5px 10px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    width: 60%;
    margin-right: 10px;
}

.btn-save-device, .btn-cancel-device {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    margin: 0 5px;
}

.btn-save-device:hover { color: var(--primary-color); }
.btn-cancel-device:hover { color: #D32F2F; }

.device-registration-promo {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.device-registration-promo h3 {
    color: #856404;
    margin-top: 0;
}

.device-registration-promo p {
    color: #856404;
    margin: 10px 0;
}

@media (max-width: 600px) {
    .device-name-input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .device-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .edit-device-btn {
        position: absolute;
        top: 15px;
        right: 15px;
    }
}

